libMesh
|
Classes | |
class | QueryElemSubdomainID |
Public Member Functions | |
CPPUNIT_TEST_SUITE (MeshExtruderTest) | |
The goal of this test is to verify proper operation of the Mesh Extruder with the optional object callback for setting custom subdomain IDs. More... | |
CPPUNIT_TEST (testExtruder) | |
CPPUNIT_TEST_SUITE_END () | |
void | setUp () |
void | tearDown () |
void | testExtruder () |
Definition at line 12 of file mesh_extruder.C.
MeshExtruderTest::CPPUNIT_TEST | ( | testExtruder | ) |
MeshExtruderTest::CPPUNIT_TEST_SUITE | ( | MeshExtruderTest | ) |
The goal of this test is to verify proper operation of the Mesh Extruder with the optional object callback for setting custom subdomain IDs.
We pass a custom object for generating subdomains based on the old element ID and the current layer and assert the proper values.
MeshExtruderTest::CPPUNIT_TEST_SUITE_END | ( | ) |
|
inline |
Definition at line 42 of file mesh_extruder.C.
|
inline |
Definition at line 44 of file mesh_extruder.C.
|
inline |
The test mesh is designed to be square with the subdomain corresponding to the element number. We will use this to assert the correct pattern from the custom extruder.
Definition at line 46 of file mesh_extruder.C.
References libMesh::MeshTools::Generation::build_extrusion(), libMesh::MeshTools::Generation::build_square(), libMesh::MeshBase::elem_ref(), libMesh::Elem::subdomain_id(), and TestCommWorld.