25 const bool use_taylor_hood_elements =
false)
42 auto sorted_nodes = _msh.getNodes();
43 sort(begin(sorted_nodes), end(sorted_nodes));
46 auto node_is_part_of_mesh =
47 [&mesh_nodes = sorted_nodes](MeshLib::Node* const& n)
49 auto it = lower_bound(begin(mesh_nodes), end(mesh_nodes), n);
50 if (it == end(mesh_nodes))
52 ERR(
"A node {:d} ({:g}, {:g}, {:g}) in mesh subset is not "
53 "a part of the mesh.",
54 n->getID(), (*n)[0], (*n)[1], (*n)[2]);
59 if (!std::all_of(begin(
_nodes), end(
_nodes), node_is_part_of_mesh))
61 OGS_FATAL(
"The mesh subset construction failed.");