35 {
36 LOG_UNIT_TEST;
37
39
40
41
43
44#ifdef LIBMESH_ENABLE_EXCEPTIONS
46 {
47
48
49 bool threw_expected_error = true;
50 try
51 {
52 for (
const auto & elem :
mesh.element_ptr_range())
53 {
54 threw_expected_error = false;
55 for (
const Elem * neigh : elem->neighbor_ptr_range())
56 if (neigh && neigh->n_sides() != 2)
57 CPPUNIT_ASSERT(false);
58 }
59 }
61 {
62 std::regex msg_regex("merely a shim");
63 CPPUNIT_ASSERT(std::regex_search(e.what(), msg_regex));
64 threw_expected_error = true;
65 }
66
67 CPPUNIT_ASSERT(threw_expected_error);
68 }
69#endif
70 }
The DistributedMesh class is derived from the MeshBase class, and is intended to provide identical fu...
This is the base class from which all geometric element types are derived.
A class to represent the internal "this should never happen" errors, to be thrown by "libmesh_error()...
processor_id_type n_processors() const