53 {
54 LOG_UNIT_TEST;
55
56 std::unique_ptr<UnstructuredMesh>
mesh = std::make_unique<Mesh>(*TestCommWorld);
57
59
60 std::set<subdomain_id_type> actual_ids;
61 for (
auto & elem :
mesh->active_element_ptr_range())
62 {
66 }
67
68 std::set<subdomain_id_type> ids;
70
71 CPPUNIT_ASSERT_EQUAL(ids.size(), actual_ids.size());
72 for (auto id : ids)
73 CPPUNIT_ASSERT(actual_ids.count(id));
74 }
static constexpr subdomain_id_type invalid_subdomain_id
A static integral constant representing an invalid subdomain id.
void subdomain_ids(std::set< subdomain_id_type > &ids, const bool global=true) const
Constructs a list of all subdomain identifiers in the local mesh if global == false,...
TestClass subdomain_id_type
Based on the 4-byte comment warning above, this probably doesn't work with exodusII at all....