Definition at line 15 of file mixed_order_test.C.
◆ CPPUNIT_TEST() [1/2]
◆ CPPUNIT_TEST() [2/2]
◆ CPPUNIT_TEST_SUITE_END()
MixedOrderTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
◆ LIBMESH_CPPUNIT_TEST_SUITE()
The goal of this test set is to test libMesh manipulation of meshes with mixed Elem orders.
◆ n_neighbor_links()
static int MixedOrderTest::n_neighbor_links |
( |
const MeshBase & |
mesh | ) |
|
|
inlinestatic |
◆ setUp()
void MixedOrderTest::setUp |
( |
| ) |
|
|
inline |
◆ tearDown()
void MixedOrderTest::tearDown |
( |
| ) |
|
|
inline |
◆ testFindNeighbors()
void MixedOrderTest::testFindNeighbors |
( |
| ) |
|
|
inline |
Definition at line 46 of file mixed_order_test.C.
References libMesh::MeshBase::all_second_order_range(), libMesh::MeshTools::Generation::build_square(), libMesh::MeshBase::find_neighbors(), mesh, TestCommWorld, and libMesh::TRI3.
60 auto range_start =
mesh.elements_begin();
61 const auto range_end =
mesh.elements_end();
62 while (range_start != range_end && (*range_start)->id() < 5)
70 CPPUNIT_ASSERT_EQUAL(old_n_neighbors, new_n_neighbors);
74 CPPUNIT_ASSERT_EQUAL(old_n_neighbors, newer_n_neighbors);
virtual void all_second_order_range(const SimpleRange< element_iterator > &range, const bool full_ordered=true)=0
Converts a set of this Mesh's elements defined by range from FIRST order to SECOND order...
libMesh::Parallel::Communicator * TestCommWorld
virtual void find_neighbors(const bool reset_remote_elements=false, const bool reset_current_list=true)=0
Locate element face (edge in 2D) neighbors.
static int n_neighbor_links(const MeshBase &mesh)
The Mesh class is a thin wrapper, around the ReplicatedMesh class by default.
◆ testStitch()
void MixedOrderTest::testStitch |
( |
| ) |
|
|
inline |
Definition at line 77 of file mixed_order_test.C.
References libMesh::MeshTools::Generation::build_square(), libMesh::DistributedMesh::n_nodes(), libMesh::QUAD4, libMesh::QUAD9, TestCommWorld, and libMesh::TOLERANCE.
90 CPPUNIT_ASSERT_EQUAL(mesh0.n_nodes(),
dof_id_type(16));
97 CPPUNIT_ASSERT_EQUAL(mesh1.n_nodes(),
dof_id_type(49));
100 mesh0.stitch_meshes(mesh1, 3, 1,
TOLERANCE,
true,
104 CPPUNIT_ASSERT_EQUAL(mesh0.n_nodes(),
dof_id_type(61));
107 CPPUNIT_ASSERT_EQUAL(stitched_n_neighbors, 54);
109 mesh0.all_second_order_range(mesh0.element_ptr_range(),
112 CPPUNIT_ASSERT_EQUAL(new_n_neighbors, 54);
libMesh::Parallel::Communicator * TestCommWorld
static constexpr Real TOLERANCE
static int n_neighbor_links(const MeshBase &mesh)
The Mesh class is a thin wrapper, around the ReplicatedMesh class by default.
The documentation for this class was generated from the following file: