Skip to content

Commit 9124dcc

Browse files
committed
Remove boundary deletion upon child boundary transfer.
1 parent 6f1ae70 commit 9124dcc

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/mesh/boundary_info.C

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,16 +1890,9 @@ BoundaryInfo::transfer_boundary_ids_from_children(const Elem * const parent)
18901890
// This is where the decision is made. If 50% of the children have the tags,
18911891
// we propagate them upwards upon coarsening. Otherwise, they are deleted.
18921892
for (const auto & boundary : boundary_counts)
1893-
{
18941893
if (boundary.second / number_of_sides_on_children > 0.5)
18951894
this->add_side(parent, side_i, boundary.first);
1896-
else
1897-
this->remove_side(parent, side_i, boundary.first);
1898-
}
18991895
}
1900-
1901-
for (const auto & child_i : make_range(parent->n_children()))
1902-
this->remove(parent->child_ptr(child_i));
19031896
}
19041897

19051898
std::size_t BoundaryInfo::n_boundary_conds () const

tests/mesh/boundary_info.C

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,8 @@ public:
560560
if (c(0) < 1)
561561
{
562562
CPPUNIT_ASSERT(bi.has_boundary_id(elem, 1, 5));
563+
// We clean this boundary for the next round of tests
564+
bi.remove_side(elem, 1, 5);
563565
// we will refine this element again
564566
elem->set_refinement_flag(Elem::REFINE);
565567
}

0 commit comments

Comments
 (0)