Definition at line 17 of file distributed_mesh_test.C.
◆ CPPUNIT_TEST()
◆ CPPUNIT_TEST_SUITE_END()
DistributedMeshTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
◆ LIBMESH_CPPUNIT_TEST_SUITE()
◆ setUp()
void DistributedMeshTest::setUp |
( |
| ) |
|
|
inline |
◆ tearDown()
void DistributedMeshTest::tearDown |
( |
| ) |
|
|
inline |
◆ testRemoteElemError()
void DistributedMeshTest::testRemoteElemError |
( |
| ) |
|
|
inline |
Definition at line 34 of file distributed_mesh_test.C.
References libMesh::MeshTools::Generation::build_line(), libMesh::EDGE2, mesh, libMesh::ParallelObject::n_processors(), libMesh::Elem::neighbor_ptr_range(), and TestCommWorld.
44 #ifdef LIBMESH_ENABLE_EXCEPTIONS 49 bool threw_expected_error =
true;
52 for (
const auto & elem :
mesh.element_ptr_range())
54 threw_expected_error =
false;
56 if (neigh && neigh->n_sides() != 2)
57 CPPUNIT_ASSERT(
false);
62 std::regex msg_regex(
"merely a shim");
63 CPPUNIT_ASSERT(std::regex_search(e.what(), msg_regex));
64 threw_expected_error =
true;
67 CPPUNIT_ASSERT(threw_expected_error);
69 #endif // LIBMESH_ENABLE_EXCEPTIONS libMesh::Parallel::Communicator * TestCommWorld
This is the base class from which all geometric element types are derived.
processor_id_type n_processors() const
The DistributedMesh class is derived from the MeshBase class, and is intended to provide identical fu...
A class to represent the internal "this should never happen" errors, to be thrown by "libmesh_error()...
SimpleRange< NeighborPtrIter > neighbor_ptr_range()
Returns a range with all neighbors of an element, usable in range-based for loops.
The documentation for this class was generated from the following file: