libMesh
|
Public Member Functions | |
CPPUNIT_TEST_SUITE (NodalNeighborsTest) | |
The goal of this test is to ensure that MeshTools::find_nodal_neighbors() works in 1D. More... | |
CPPUNIT_TEST (testEdge2) | |
CPPUNIT_TEST (testEdge3) | |
CPPUNIT_TEST (testEdge4) | |
CPPUNIT_TEST_SUITE_END () | |
void | setUp () |
void | tearDown () |
void | testEdge2 () |
void | testEdge3 () |
void | testEdge4 () |
Protected Member Functions | |
void | do_test (unsigned n_elem, ElemType elem_type, dof_id_type *validation_data) |
Definition at line 13 of file nodal_neighbors.C.
NodalNeighborsTest::CPPUNIT_TEST | ( | testEdge2 | ) |
NodalNeighborsTest::CPPUNIT_TEST | ( | testEdge3 | ) |
NodalNeighborsTest::CPPUNIT_TEST | ( | testEdge4 | ) |
NodalNeighborsTest::CPPUNIT_TEST_SUITE | ( | NodalNeighborsTest | ) |
The goal of this test is to ensure that MeshTools::find_nodal_neighbors() works in 1D.
If the numbering of MeshGeneration::build_line() ever changes, this test will break, as it compares hand-checked hard-coded "validation" data with the results of MeshTools::find_nodal_neighbors(). We also use a ReplicatedMesh here to match the hard-coded numbering.
NodalNeighborsTest::CPPUNIT_TEST_SUITE_END | ( | ) |
|
inlineprotected |
Definition at line 35 of file nodal_neighbors.C.
References libMesh::MeshTools::Generation::build_line(), libMesh::MeshTools::build_nodes_to_elem_map(), libMesh::MeshTools::find_nodal_neighbors(), mesh, libMesh::MeshTools::n_elem(), libMesh::MeshBase::node_ptr_range(), and TestCommWorld.
|
inline |
Definition at line 80 of file nodal_neighbors.C.
|
inline |
Definition at line 82 of file nodal_neighbors.C.
|
inline |
Definition at line 84 of file nodal_neighbors.C.
References libMesh::EDGE2, and libMesh::DofObject::invalid_id.
|
inline |
Definition at line 106 of file nodal_neighbors.C.
References libMesh::EDGE3, and libMesh::DofObject::invalid_id.
|
inline |
Definition at line 128 of file nodal_neighbors.C.
References libMesh::EDGE4, and libMesh::DofObject::invalid_id.