Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/L2_projection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,13 @@ function assemble_proj_rhs!(f::Matrix, cellvalues::CellValues, sdh::SubDofHandle
return
end

"""
evaluate_at_grid_nodes(proj::L2Projector, vals::AbstractVector)
Return a vector of length `getnnodes(grid)` where the order corresponds with the node order
in the `grid` used to create `proj`.
`vals` should be the output from `project` using `proj`.
"""
evaluate_at_grid_nodes(proj::L2Projector, vals::AbstractVector) =
_evaluate_at_grid_nodes(proj, vals, Val(false))

Expand Down
2 changes: 1 addition & 1 deletion src/Quadrature/quadrature.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ using Base.Cartesian: @nloops, @ntuple, @nexprs
QuadratureRule{shape}(weights::AbstractVector{T}, points::AbstractVector{Vec{rdim, T}})
Create a `QuadratureRule` used for integration on the refshape `shape` (of type [`AbstractRefShape`](@ref)).
`order` is the order of the quadrature rule.
`order` affects the number of quadrature points, and thus the precision of the integration rule. The exact relationship between `order` and the number of quadrature points depends on the `quad_rule_type` and `shape`.
`quad_rule_type` is an optional argument determining the type of quadrature rule,
currently the `:legendre` and `:lobatto` rules are implemented for hypercubes.
For triangles up to order 8 the default rule is the one by `:dunavant` (see [Dun:1985:hde](@cite)) and for
Expand Down
Loading