Skip to content

Commit 5f3cdb1

Browse files
committed
Bugfix
1 parent 253f3b5 commit 5f3cdb1

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/HybridAffineFEOperators.jl

+13-4
Original file line numberDiff line numberDiff line change
@@ -469,11 +469,20 @@ function restrict_facet_dof_ids_to_cell_boundary(cell_wise_facets, facet_dof_ids
469469
end
470470

471471
function Gridap.FESpaces.get_cell_fe_data(
472-
fun::typeof(Gridap.FESpaces.get_cell_is_dirichlet),sface_to_data,sglue::FaceToFaceGlue,tglue::SkeletonGlue)
472+
fun::typeof(Gridap.FESpaces.get_cell_is_dirichlet),
473+
sface_to_data,
474+
sglue::FaceToFaceGlue{Dc},
475+
tglue::SkeletonGlue
476+
) where Dc
473477
model = tglue.trian.model
474-
cell_wise_facets = _get_cell_wise_facets(model)
475-
fdofscb = restrict_facet_dof_ids_to_cell_boundary(cell_wise_facets, sface_to_data)
476-
_generate_cell_is_dirichlet(fdofscb)
478+
if Dc == num_cell_dims(model)
479+
sface_to_data
480+
else
481+
model = tglue.trian.model
482+
cell_wise_facets = _get_cell_wise_facets(model)
483+
fdofscb = restrict_facet_dof_ids_to_cell_boundary(cell_wise_facets, sface_to_data)
484+
_generate_cell_is_dirichlet(fdofscb)
485+
end
477486
end
478487

479488
function _generate_cell_is_dirichlet(cell_dofs)

test/_dev/_deprecated/DarcyHDGConvgTestsInvestigateFurther.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,4 @@ n = 4
155155
# shape=:auto,
156156
# xlabel="h",ylabel="L2 error",legend=:bottomright))
157157

158-
# end # modulez
158+
end # module

0 commit comments

Comments
 (0)