1 #include <libmesh/libmesh.h> 2 #include <libmesh/replicated_mesh.h> 3 #include <libmesh/elem.h> 4 #include <libmesh/mesh_generation.h> 24 CPPUNIT_TEST( testExtruder );
27 CPPUNIT_TEST_SUITE_END();
52 const unsigned int n_elems_per_side = 4;
53 const unsigned int num_layers = 4;
54 const unsigned int n_elems_per_layer = n_elems_per_side * n_elems_per_side;
58 for (
unsigned int i=0; i<n_elems_per_layer; ++i)
77 for (
unsigned int i=0; i<n_elems_per_layer * num_layers; ++i)
82 CPPUNIT_ASSERT_EQUAL(static_cast<unsigned int>(elem.
subdomain_id()), i%n_elems_per_layer + i/n_elems_per_layer );
Class for receiving the callback during extrusion generation and providing user-defined subdomains ba...
The ReplicatedMesh class is derived from the MeshBase class, and is used to store identical copies of...
libMesh::Parallel::Communicator * TestCommWorld
This is the base class from which all geometric element types are derived.
virtual subdomain_id_type get_subdomain_for_layer(const Elem *old_elem, unsigned int layer)
The override from the base class for obtaining a new id based on the old (original) element and the s...
The libMesh namespace provides an interface to certain functionality in the library.
subdomain_id_type subdomain_id() const
virtual const Elem & elem_ref(const dof_id_type i) const
CPPUNIT_TEST_SUITE_REGISTRATION(MeshExtruderTest)