Definition at line 46 of file dof_map_test.C.
◆ CPPUNIT_TEST() [1/5]
◆ CPPUNIT_TEST() [2/5]
◆ CPPUNIT_TEST() [3/5]
◆ CPPUNIT_TEST() [4/5]
◆ CPPUNIT_TEST() [5/5]
◆ CPPUNIT_TEST_SUITE()
◆ CPPUNIT_TEST_SUITE_END()
DofMapTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
◆ setUp()
void DofMapTest::setUp |
( |
| ) |
|
|
inline |
◆ tearDown()
void DofMapTest::tearDown |
( |
| ) |
|
|
inline |
◆ testConstraintLoopDetection()
void DofMapTest::testConstraintLoopDetection |
( |
| ) |
|
|
inline |
Definition at line 117 of file dof_map_test.C.
134 CPPUNIT_ASSERT_THROW_MESSAGE(
"Constraint loop not detected", es.init(),
libMesh::LogicError);
References libMesh::EquationSystems::add_system(), libMesh::System::add_variable(), libMesh::System::attach_constraint_object(), libMesh::MeshTools::Generation::build_square(), libMesh::FIRST, libMesh::System::get_dof_map(), libMesh::EquationSystems::init(), mesh, libMesh::QUAD4, libMesh::DofMap::set_error_on_constraint_loop(), and TestCommWorld.
◆ testDofOwner()
void DofMapTest::testDofOwner |
( |
const ElemType |
elem_type | ) |
|
|
inline |
Definition at line 74 of file dof_map_test.C.
82 const unsigned int n_elem_per_side = 3;
83 const std::unique_ptr<Elem> test_elem = Elem::build(elem_type);
84 const unsigned int ymax = test_elem->dim() > 1;
85 const unsigned int zmax = test_elem->dim() > 2;
86 const unsigned int ny = ymax * n_elem_per_side;
87 const unsigned int nz = zmax * n_elem_per_side;
104 CPPUNIT_ASSERT(dof_map.
first_dof(pid) <= id);
105 CPPUNIT_ASSERT(
id < dof_map.
end_dof(pid));
References libMesh::EquationSystems::add_system(), libMesh::System::add_variable(), libMesh::Elem::build(), libMesh::MeshTools::Generation::build_cube(), libMesh::DofMap::dof_owner(), libMesh::DofMap::end_dof(), libMesh::DofMap::first_dof(), libMesh::System::get_dof_map(), libMesh::HIERARCHIC, libMesh::EquationSystems::init(), mesh, libMesh::DofMap::n_dofs(), TestCommWorld, and libMesh::THIRD.
◆ testDofOwnerOnEdge3()
void DofMapTest::testDofOwnerOnEdge3 |
( |
| ) |
|
|
inline |
◆ testDofOwnerOnHex27()
void DofMapTest::testDofOwnerOnHex27 |
( |
| ) |
|
|
inline |
◆ testDofOwnerOnQuad9()
void DofMapTest::testDofOwnerOnQuad9 |
( |
| ) |
|
|
inline |
◆ testDofOwnerOnTri6()
void DofMapTest::testDofOwnerOnTri6 |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
Manages consistently variables, degrees of freedom, and coefficient vectors.
The Mesh class is a thin wrapper, around the ReplicatedMesh class by default.
dof_id_type n_dofs() const
A class to represent the internal "this should never happen" errors, to be thrown by "libmesh_error()...
dof_id_type first_dof(const processor_id_type proc) const
void attach_constraint_object(Constraint &constrain)
Register a user object for imposing constraints.
void set_error_on_constraint_loop(bool error_on_constraint_loop)
unsigned int add_variable(const std::string &var, const FEType &type, const std::set< subdomain_id_type > *const active_subdomains=nullptr)
Adds the variable var to the list of variables for this system.
libMesh::Parallel::Communicator * TestCommWorld
uint8_t processor_id_type
This is the EquationSystems class.
This class handles the numbering of degrees of freedom on a mesh.
const DofMap & get_dof_map() const
void testDofOwner(const ElemType elem_type)
processor_id_type dof_owner(const dof_id_type dof) const
dof_id_type end_dof(const processor_id_type proc) const