Skip to content

Commit 01a7985

Browse files
committed
Simple but not ideal fix for remove sides in ElementSubdomainModifier
1 parent 3f1f5f6 commit 01a7985

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

framework/src/userobject/ElementSubdomainModifier.C

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ ElementSubdomainModifier::updateBoundaryInfo(MooseMesh & mesh,
186186
// Otherwise remove this side and the neighbor side from the boundary.
187187
else
188188
{
189+
// _children_on_boundary is default to False so we cannot remove side from a child element
190+
// To set _children_on_boundary=true, we need to add side
191+
// This is not ideal solution.
192+
// TODO: allow setting _children_on_boundary = true in libmesh
193+
bnd_info.add_side(elem, side, _moving_boundary_id);
189194
bnd_info.remove_side(elem, side);
190195
unsigned int neighbor_side = neighbor->which_neighbor_am_i(elem);
191196
bnd_info.remove_side(neighbor, neighbor_side);

0 commit comments

Comments
 (0)