Skip to content

Commit 2fd6181

Browse files
authored
Merge pull request #4262 from roystgnr/failure_fixes
Fixes for devel->master test failures
2 parents 26c63ea + 4f95022 commit 2fd6181

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
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,

tests/mesh/boundary_info.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ public:
625625
BoundaryInfo & bi = mesh->get_boundary_info();
626626

627627
// Now we add the extra boundary ID (5) to the element on side 3
628-
auto elem = mesh->elem_ptr(0);
628+
auto elem = mesh->query_elem_ptr(0);
629629
if (elem)
630630
bi.add_side(elem, 3, 5);
631631
mesh->prepare_for_use();

0 commit comments

Comments
 (0)