Skip to content

Commit 6c8a256

Browse files
committed
Return early for nodelems side_boundary_ids (no sides, no bids)
refs idaholab/moose#31459
1 parent 1a475b5 commit 6c8a256

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/mesh/boundary_info.C

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,6 +1544,10 @@ void BoundaryInfo::side_boundary_ids (const Elem * const elem,
15441544
// We are going to gather boundary ids for each side
15451545
vec_to_fill.resize(elem->n_sides());
15461546

1547+
// No sides, no boundary ids
1548+
if (!elem->n_sides())
1549+
return;
1550+
15471551
// In most cases only level-0 elements store BCs.
15481552
// In certain applications (such as time-dependent domains), however, children
15491553
// need to store BCs too. This case is covered with the _children_on_boundary

0 commit comments

Comments
 (0)