Definition at line 18 of file distort.C.
◆ CPPUNIT_TEST() [1/2]
◆ CPPUNIT_TEST() [2/2]
◆ CPPUNIT_TEST_SUITE_END()
DistortTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
◆ LIBMESH_CPPUNIT_TEST_SUITE()
DistortTest::LIBMESH_CPPUNIT_TEST_SUITE |
( |
DistortTest |
| ) |
|
The goal of this test is to make sure that boundary nodes are not restricted during distortion.
◆ perturb_and_check()
Definition at line 69 of file distort.C.
References libMesh::MeshTools::Modification::distort(), libMesh::MeshTools::find_boundary_nodes(), and mesh.
73 std::unordered_map<dof_id_type, Point> pts_before;
74 for (
const auto & node :
mesh.node_ptr_range())
75 pts_before[node->id()] = *node;
77 std::unordered_set<dof_id_type> boundary_node_ids =
86 for (
const auto & node :
mesh.node_ptr_range())
88 bool equal = node->absolute_fuzzy_equals(pts_before[node->id()]);
89 CPPUNIT_ASSERT(boundary_node_ids.count(node->id()) ? equal : !equal);
◆ setUp()
void DistortTest::setUp |
( |
| ) |
|
|
inline |
◆ tearDown()
void DistortTest::tearDown |
( |
| ) |
|
|
inline |
◆ test_helper_2D()
void DistortTest::test_helper_2D |
( |
ElemType |
elem_type | ) |
|
|
inlineprotected |
◆ test_helper_3D()
void DistortTest::test_helper_3D |
( |
ElemType |
elem_type | ) |
|
|
inlineprotected |
◆ testDistortHex()
void DistortTest::testDistortHex |
( |
| ) |
|
|
inline |
◆ testDistortQuad()
void DistortTest::testDistortQuad |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: