Skip to content

Commit e037190

Browse files
committed
Fix new BoundaryInfo method with --disable-amr
1 parent 26c63ea commit e037190

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/mesh/boundary_info.C

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,6 @@ void BoundaryInfo::side_boundary_ids (const Elem * const elem,
15401540
const Elem * searched_elem = elem;
15411541

15421542
#ifdef LIBMESH_ENABLE_AMR
1543-
15441543
if (elem->level() != 0)
15451544
{
15461545
// If we have children on the boundaries, we need to search for boundary IDs on the
@@ -1606,11 +1605,11 @@ void BoundaryInfo::side_boundary_ids (const Elem * const elem,
16061605
vec_to_fill[pr.second.first].push_back(pr.second.second);
16071606
return;
16081607
}
1608+
#endif
16091609

16101610
// Check each element in the range to see if its side matches the requested side.
16111611
for (const auto & pr : as_range(_boundary_side_id.equal_range(searched_elem)))
16121612
vec_to_fill[pr.second.first].push_back(pr.second.second);
1613-
#endif
16141613
}
16151614

16161615
void BoundaryInfo::boundary_ids (const Elem * const elem,

0 commit comments

Comments
 (0)