Skip to content

Commit

Permalink
Add fields and constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold authored Dec 4, 2024
1 parent 3c06d76 commit 167c3bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/integration_rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ e.g. `length(geometry)/λ`.
"""
struct GaussLegendre <: IntegrationRule
n::Int64
nodes::Vector{Float64}
weights::Vector{Float64}

GaussLegendre(n::Int64) = new(n, FastGaussQuadrature.gausslegendre(n)...)
end

"""
Expand Down

0 comments on commit 167c3bd

Please sign in to comment.