1#include <libmesh/equation_systems.h>
2#include <libmesh/mesh_generation.h>
3#include <libmesh/node.h>
4#include <libmesh/replicated_mesh.h>
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())
LIBMESH_CPPUNIT_TEST_SUITE(MeshSpatialDimensionTest)
This unit test tests a few basic things with the new Mesh::spatial_dimension() implementation.
void set_spatial_dimension(unsigned char d)
Sets the "spatial dimension" of the Mesh.
unsigned int mesh_dimension() const
unsigned int spatial_dimension() const
void prepare_for_use(const bool skip_renumber_nodes_and_elements, const bool skip_find_neighbors)
Prepare a newly created (or read) mesh for use.
The ReplicatedMesh class is derived from the MeshBase class, and is used to store identical copies of...
Communicator * TestCommWorld
The libMesh namespace provides an interface to certain functionality in the library.
CPPUNIT_TEST_SUITE_REGISTRATION(MeshSpatialDimensionTest)