|
GRINS::SharedPtr< libMesh::UnstructuredMesh > | build_mesh (const GetPot &input) |
|
void | test_elem_type (const libMesh::MeshBase &mesh, GRINSEnums::ElemType elem_type_expected) |
|
Definition at line 44 of file mesh_builder.C.
GRINS::SharedPtr<libMesh::UnstructuredMesh> GRINSTesting::MeshBuilderTest::build_mesh |
( |
const GetPot & |
input | ) |
|
|
inlineprivate |
GRINSTesting::MeshBuilderTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
void GRINSTesting::MeshBuilderTest::test_build_1d_mesh |
( |
| ) |
|
|
inline |
Definition at line 57 of file mesh_builder.C.
References build_mesh(), and test_elem_type().
59 std::string filename = std::string(GRINS_TEST_UNIT_INPUT_SRCDIR)+
"/mesh_build_1d.in";
60 GetPot input(filename);
61 GRINS::SharedPtr<libMesh::UnstructuredMesh> mesh = this->
build_mesh(input);
62 CPPUNIT_ASSERT_EQUAL((libMesh::dof_id_type)22,mesh->n_elem());
GRINS::SharedPtr< libMesh::UnstructuredMesh > build_mesh(const GetPot &input)
void test_elem_type(const libMesh::MeshBase &mesh, GRINSEnums::ElemType elem_type_expected)
void GRINSTesting::MeshBuilderTest::test_build_2d_mesh |
( |
| ) |
|
|
inline |
Definition at line 66 of file mesh_builder.C.
References build_mesh(), and test_elem_type().
68 std::string filename = std::string(GRINS_TEST_UNIT_INPUT_SRCDIR)+
"/mesh_build_2d.in";
69 GetPot input(filename);
70 GRINS::SharedPtr<libMesh::UnstructuredMesh> mesh = this->
build_mesh(input);
71 CPPUNIT_ASSERT_EQUAL((libMesh::dof_id_type)100,mesh->n_elem());
GRINS::SharedPtr< libMesh::UnstructuredMesh > build_mesh(const GetPot &input)
void test_elem_type(const libMesh::MeshBase &mesh, GRINSEnums::ElemType elem_type_expected)
void GRINSTesting::MeshBuilderTest::test_build_3d_mesh |
( |
| ) |
|
|
inline |
Definition at line 76 of file mesh_builder.C.
References build_mesh(), and test_elem_type().
78 std::string filename = std::string(GRINS_TEST_UNIT_INPUT_SRCDIR)+
"/mesh_build_3d.in";
79 GetPot input(filename);
80 GRINS::SharedPtr<libMesh::UnstructuredMesh> mesh = this->
build_mesh(input);
81 CPPUNIT_ASSERT_EQUAL((libMesh::dof_id_type)125,mesh->n_elem());
GRINS::SharedPtr< libMesh::UnstructuredMesh > build_mesh(const GetPot &input)
void test_elem_type(const libMesh::MeshBase &mesh, GRINSEnums::ElemType elem_type_expected)
void GRINSTesting::MeshBuilderTest::test_elem_type |
( |
const libMesh::MeshBase & |
mesh, |
|
|
GRINSEnums::ElemType |
elem_type_expected |
|
) |
| |
|
inlineprivate |
Definition at line 93 of file mesh_builder.C.
Referenced by test_build_1d_mesh(), test_build_2d_mesh(), and test_build_3d_mesh().
95 for( libMesh::MeshBase::const_element_iterator e = mesh.active_elements_begin();
96 e != mesh.active_elements_end(); ++ e )
98 const libMesh::Elem* elem = *e;
99 GRINSEnums::ElemType elem_type_computed = elem->type();
100 CPPUNIT_ASSERT_EQUAL( elem_type_expected, elem_type_computed);
The documentation for this class was generated from the following file: