File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff 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
19051898std ::size_t BoundaryInfo ::n_boundary_conds () const
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments