Skip to content

Commit

Permalink
Update polynomial bases
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Jan 15, 2025
1 parent 4f5b12f commit 4e56006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ReferenceFEs/AWRefFEs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function ArnoldWintherRefFE(::Type{T},p::Polytope,order::Integer) where T

VT = SymTensorValue{2,T}
prebasis = MonomialBasis(Val(2),VT,3,Polynomials._p_filter)
fb = MonomialBasis(Val(D-1),T,0,Polynomials._p_filter)
fb = MonomialBasis(Val(1),T,0,Polynomials._p_filter)
cb = map(constant_field,component_basis(VT))

function cmom(φ,μ,ds) # Cell and Node moment function: σ_K(φ,μ) = ∫(φ:μ)dK
Expand Down
6 changes: 3 additions & 3 deletions src/ReferenceFEs/HHJRefFEs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ function HellanHerrmannJhonsonRefFE(::Type{T},p::Polytope,order::Integer) where
@assert p == TRI "HellanHerrmannJhonson Reference FE only defined for TRIangles"

VT = SymTensorValue{2,T}
prebasis = MonomialBasis{2}(VT,order,Polynomials._p_filter)
fb = MonomialBasis{1}(T,order,Polynomials._p_filter)
cb = MonomialBasis{2}(VT,order-1,Polynomials._p_filter)
prebasis = MonomialBasis(Val(2),VT,order,Polynomials._p_filter)
fb = MonomialBasis(Val(1),T,order,Polynomials._p_filter)
cb = MonomialBasis(Val(2),VT,order-1,Polynomials._p_filter)

function cmom(φ,μ,ds) # Cell and Node moment function: σ_K(φ,μ) = ∫(φ:μ)dK
Broadcasting(Operation())(φ,μ)
Expand Down

0 comments on commit 4e56006

Please sign in to comment.