34 const bool use_taylor_hood_elements =
false)
51 auto sorted_nodes = _msh.getNodes();
52 sort(begin(sorted_nodes), end(sorted_nodes));
55 auto node_is_part_of_mesh =
56 [&mesh_nodes = sorted_nodes](MeshLib::Node* const& n)
58 auto it = lower_bound(begin(mesh_nodes), end(mesh_nodes), n);
59 if (it == end(mesh_nodes))
61 ERR(
"A node {:d} ({:g}, {:g}, {:g}) in mesh subset is not "
62 "a part of the mesh.",
63 n->getID(), (*n)[0], (*n)[1], (*n)[2]);
68 if (!std::all_of(begin(
_nodes), end(
_nodes), node_is_part_of_mesh))
70 OGS_FATAL(
"The mesh subset construction failed.");