36 if (elem->p_refinement_flag() == Elem::JUST_REFINED)
38 else if (elem->p_refinement_flag() == Elem::JUST_COARSENED)
49 if (elem->refinement_flag() == Elem::JUST_REFINED)
51 const Elem *
const parent = elem->parent();
52 const unsigned int child_num = parent->which_child_am_i(elem);
54 bool im_the_lowest_local_child =
true;
55 for (
const auto c : make_range(child_num))
56 if (parent->child_ptr(c) && parent->child_ptr(c) != remote_elem &&
58 im_the_lowest_local_child =
false;
60 if (im_the_lowest_local_child)
64 else if (elem->refinement_flag() == Elem::JUST_COARSENED)
66 if (elem->has_children())
72 for (
unsigned int child = 0; child < elem->n_children(); child++)
73 children.push_back(elem->child_ptr(child));