Definition at line 12 of file spatial_dimension_test.C.
◆ CPPUNIT_TEST() [1/2]
| MeshSpatialDimensionTest::CPPUNIT_TEST |
( |
test1D |
| ) |
|
◆ CPPUNIT_TEST() [2/2]
| MeshSpatialDimensionTest::CPPUNIT_TEST |
( |
test2D |
| ) |
|
◆ CPPUNIT_TEST_SUITE_END()
| MeshSpatialDimensionTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
◆ LIBMESH_CPPUNIT_TEST_SUITE()
This unit test tests a few basic things with the new Mesh::spatial_dimension() implementation.
◆ setUp()
| void MeshSpatialDimensionTest::setUp |
( |
| ) |
|
|
inline |
◆ tearDown()
| void MeshSpatialDimensionTest::tearDown |
( |
| ) |
|
|
inline |
◆ test1D()
| void MeshSpatialDimensionTest::test1D |
( |
| ) |
|
|
inline |
◆ test2D()
| void MeshSpatialDimensionTest::test2D |
( |
| ) |
|
|
inline |
Definition at line 81 of file spatial_dimension_test.C.
82 {
83 LOG_UNIT_TEST;
84
85
88 2, 2,
89 0., 1.,
90 0., 1.,
93
94
95
96 for (
auto & node :
mesh.node_ptr_range())
97 (*node)(2) =
98 (*node)(0) * (*node)(0) +
99 (*node)(1) * (*node)(1);
100
104
105
106
107 for (
auto & node :
mesh.node_ptr_range())
108 (*node)(2) = 0.;
109
113
114
115
120
121
122
127 }
void set_spatial_dimension(unsigned char d)
Sets the "spatial dimension" of the Mesh.
References libMesh::MeshTools::Generation::build_square(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::MeshBase::prepare_for_use(), libMesh::QUAD4, libMesh::MeshBase::set_spatial_dimension(), libMesh::MeshBase::spatial_dimension(), and TestCommWorld.
The documentation for this class was generated from the following file: