1 #include <libmesh/equation_systems.h> 2 #include <libmesh/mesh_generation.h> 3 #include <libmesh/node.h> 4 #include <libmesh/replicated_mesh.h> 22 CPPUNIT_TEST( test1D );
25 CPPUNIT_TEST( test2D );
28 CPPUNIT_TEST_SUITE_END();
51 for (
auto & node :
mesh.node_ptr_range())
52 (*node)(1) = (*node)(0) * (*node)(0);
60 for (
auto & node :
mesh.node_ptr_range())
70 for (
auto & node :
mesh.node_ptr_range())
71 (*node)(2) = (*node)(0) * (*node)(0);
96 for (
auto & node :
mesh.node_ptr_range())
98 (*node)(0) * (*node)(0) +
99 (*node)(1) * (*node)(1);
107 for (
auto & node :
mesh.node_ptr_range())
The ReplicatedMesh class is derived from the MeshBase class, and is used to store identical copies of...
libMesh::Parallel::Communicator * TestCommWorld
void set_spatial_dimension(unsigned char d)
Sets the "spatial dimension" of the Mesh.
void prepare_for_use(const bool skip_renumber_nodes_and_elements, const bool skip_find_neighbors)
Prepare a newly ecreated (or read) mesh for use.
The libMesh namespace provides an interface to certain functionality in the library.
unsigned int spatial_dimension() const
unsigned int mesh_dimension() const
CPPUNIT_TEST_SUITE_REGISTRATION(MeshSpatialDimensionTest)