Skip to content

Commit 570b3b5

Browse files
authored
Fix and test shape function evaluation for DiscontinuousLagrange (#553)
1 parent b1a8a30 commit 570b3b5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/interpolations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function reference_coordinates(ip::DiscontinuousLagrange{dim,shape,order}) where
149149
return reference_coordinates(Lagrange{dim,shape,order}())
150150
end
151151
function value(ip::DiscontinuousLagrange{dim,shape,order}, i::Int, ξ::Vec{dim}) where {dim,shape,order}
152-
return value(Lagrange{dim, ref_type, order}())
152+
return value(Lagrange{dim, shape, order}(), i, ξ)
153153
end
154154

155155
# Excepting the L0 element.

test/test_interpolations.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ for interpolation in (
2222
DiscontinuousLagrange{3, RefCube, 0}(),
2323
DiscontinuousLagrange{2, RefTetrahedron, 0}(),
2424
DiscontinuousLagrange{3, RefTetrahedron, 0}(),
25+
DiscontinuousLagrange{1, RefCube, 1}(),
26+
DiscontinuousLagrange{2, RefCube, 1}(),
27+
DiscontinuousLagrange{3, RefCube, 1}(),
28+
DiscontinuousLagrange{2, RefTetrahedron, 1}(),
29+
DiscontinuousLagrange{3, RefTetrahedron, 1}(),
2530
#
2631
BubbleEnrichedLagrange{2,RefTetrahedron,1}(),
2732
#

0 commit comments

Comments
 (0)