|
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 49 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 62 of file mesh_builder.C.
References build_mesh(), and test_elem_type().
64 std::string filename = std::string(GRINS_TEST_UNIT_INPUT_SRCDIR)+
"/mesh_build_1d.in";
65 GetPot input(filename);
66 GRINS::SharedPtr<libMesh::UnstructuredMesh> mesh = this->
build_mesh(input);
67 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 71 of file mesh_builder.C.
References build_mesh(), and test_elem_type().
73 std::string filename = std::string(GRINS_TEST_UNIT_INPUT_SRCDIR)+
"/mesh_build_2d.in";
74 GetPot input(filename);
75 GRINS::SharedPtr<libMesh::UnstructuredMesh> mesh = this->
build_mesh(input);
76 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 81 of file mesh_builder.C.
References build_mesh(), and test_elem_type().
83 std::string filename = std::string(GRINS_TEST_UNIT_INPUT_SRCDIR)+
"/mesh_build_3d.in";
84 GetPot input(filename);
85 GRINS::SharedPtr<libMesh::UnstructuredMesh> mesh = this->
build_mesh(input);
86 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 98 of file mesh_builder.C.
Referenced by test_build_1d_mesh(), test_build_2d_mesh(), and test_build_3d_mesh().
100 for( libMesh::MeshBase::const_element_iterator e = mesh.active_elements_begin();
101 e != mesh.active_elements_end(); ++ e )
103 const libMesh::Elem* elem = *e;
104 GRINSEnums::ElemType elem_type_computed = elem->type();
105 CPPUNIT_ASSERT_EQUAL( elem_type_expected, elem_type_computed);
The documentation for this class was generated from the following file: