60 {
61 _mesh = std::make_unique<Mesh>(*TestCommWorld);
62
64
65
66
71
76 else
77 MeshTools::Generation::build_cube(*
_mesh, 2, 2, 2, 0., 1., 0., 1., 0., 1., base);
78
79 if (base != elem_type)
80 _mesh->all_second_order();
81
82
83
85
86 for (
auto * elem :
_mesh->active_element_ptr_range())
87 if (elem->id() % 4 == 0)
88 elem->set_refinement_flag(
Elem::REFINE);
89
90 refine.refine_and_coarsen_elements();
91 }
std::unique_ptr< Mesh > _mesh
This is the base class from which all geometric element types are derived.
static const unsigned int type_to_dim_map[INVALID_ELEM]
This array maps the integer representation of the ElemType enum to the geometric dimension of the ele...
Implements (adaptive) mesh refinement algorithms for a MeshBase.
ElemType
Defines an enum for geometric element types.