MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "TestRunner.hpp"
#include "iMesh.h"
#include "MBiMesh.hpp"
#include "moab/Core.hpp"
#include <algorithm>
Go to the source code of this file.
Functions | |
iMesh_Instance | create_mesh () |
void | test_getEntArrAdj_conn () |
void | test_getEntArrAdj_vertex () |
void | test_getEntArrAdj_up () |
void | test_getEntArrAdj_down () |
void | test_getEntArrAdj_invalid_size () |
void | test_getEntArrAdj_none () |
void | test_existinterface () |
void | test_tags_retrieval () |
void | test_invalid_parallel_option () |
int | main (int argc, char *argv[]) |
static void | HEX_VERTS (int i, int j, int k, iBase_EntityHandle conn[8]) |
static void | QUAD_VERTS (int f, int i, int j, iBase_EntityHandle conn[4]) |
Variables | |
const int | INTERVALS = 2 |
iBase_EntityHandle | VERTS [INTERVALS+1][INTERVALS+1][INTERVALS+1] |
iBase_EntityHandle | HEXES [INTERVALS][INTERVALS][INTERVALS] |
iBase_EntityHandle | FACES [6][INTERVALS][INTERVALS] |
iMesh_Instance create_mesh | ( | ) |
Definition at line 98 of file MOAB_iMesh_unit_tests.cpp.
References CHECK_EQUAL, FACES, HEX_VERTS(), HEXES, iBase_NEW, iBase_SUCCESS, iMesh_createEnt, iMesh_createVtx, iMesh_HEXAHEDRON, iMesh_newMesh, iMesh_QUADRILATERAL, INTERVALS, QUAD_VERTS(), and VERTS.
Referenced by main(), test_getEntArrAdj_conn(), test_getEntArrAdj_down(), test_getEntArrAdj_invalid_size(), test_getEntArrAdj_none(), test_getEntArrAdj_up(), and test_getEntArrAdj_vertex().
|
static |
Definition at line 56 of file MOAB_iMesh_unit_tests.cpp.
References VERTS.
Referenced by create_mesh(), and test_getEntArrAdj_conn().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 19 of file MOAB_iMesh_unit_tests.cpp.
References CHECK_EQUAL, create_mesh(), iBase_SUCCESS, iMesh_dtor, mesh, REGISTER_TEST, RUN_TESTS, test_existinterface(), test_getEntArrAdj_conn(), test_getEntArrAdj_down(), test_getEntArrAdj_invalid_size(), test_getEntArrAdj_none(), test_getEntArrAdj_up(), test_getEntArrAdj_vertex(), test_invalid_parallel_option(), and test_tags_retrieval().
|
static |
Definition at line 68 of file MOAB_iMesh_unit_tests.cpp.
References CHECK, INTERVALS, and VERTS.
Referenced by create_mesh(), and test_getEntArrAdj_conn().
void test_existinterface | ( | ) |
Definition at line 402 of file MOAB_iMesh_unit_tests.cpp.
References CHECK_EQUAL, dim, ErrorCode, moab::Core::get_number_entities_by_dimension(), iBase_SUCCESS, iMesh_dtor, iMesh_getGeometricDimension, MB_SUCCESS, and mesh.
Referenced by main().
void test_getEntArrAdj_conn | ( | ) |
Definition at line 140 of file MOAB_iMesh_unit_tests.cpp.
References CHECK_ARRAYS_EQUAL, CHECK_EQUAL, create_mesh(), FACES, HEX_VERTS(), HEXES, iBase_SUCCESS, iBase_VERTEX, iMesh_getEntArrAdj, INTERVALS, mesh, and QUAD_VERTS().
Referenced by main().
void test_getEntArrAdj_down | ( | ) |
Definition at line 274 of file MOAB_iMesh_unit_tests.cpp.
References CHECK, CHECK_ARRAYS_EQUAL, CHECK_EQUAL, create_mesh(), FACES, HEXES, iBase_FACE, iBase_SUCCESS, iMesh_getEntArrAdj, INTERVALS, and mesh.
Referenced by main().
void test_getEntArrAdj_invalid_size | ( | ) |
Definition at line 334 of file MOAB_iMesh_unit_tests.cpp.
References CHECK_EQUAL, create_mesh(), HEXES, iBase_BAD_ARRAY_SIZE, iBase_REGION, iBase_SUCCESS, iBase_VERTEX, iMesh_getEntArrAdj, INTERVALS, mesh, and VERTS.
Referenced by main().
void test_getEntArrAdj_none | ( | ) |
Definition at line 382 of file MOAB_iMesh_unit_tests.cpp.
References CHECK, CHECK_EQUAL, create_mesh(), iBase_REGION, iBase_SUCCESS, iMesh_getEntArrAdj, and mesh.
Referenced by main().
void test_getEntArrAdj_up | ( | ) |
Definition at line 244 of file MOAB_iMesh_unit_tests.cpp.
References CHECK, CHECK_EQUAL, create_mesh(), FACES, HEXES, iBase_REGION, iBase_SUCCESS, iMesh_getEntArrAdj, INTERVALS, and mesh.
Referenced by main().
void test_getEntArrAdj_vertex | ( | ) |
Definition at line 206 of file MOAB_iMesh_unit_tests.cpp.
References CHECK, CHECK_EQUAL, create_mesh(), HEXES, iBase_REGION, iBase_SUCCESS, iMesh_getEntArrAdj, INTERVALS, mesh, and VERTS.
Referenced by main().
void test_invalid_parallel_option | ( | ) |
Definition at line 477 of file MOAB_iMesh_unit_tests.cpp.
References CHECK_EQUAL, iBase_NOT_SUPPORTED, iBase_SUCCESS, iMesh_dtor, iMesh_newMesh, and mesh.
Referenced by main().
void test_tags_retrieval | ( | ) |
Definition at line 425 of file MOAB_iMesh_unit_tests.cpp.
References CHECK_EQUAL, filename, iBase_SUCCESS, iMesh_dtor, iMesh_getAllEntSetTags, iMesh_getEntSets, iMesh_getRootSet, iMesh_getTagSizeValues, iMesh_load, iMesh_newMesh, mesh, root_set, and STRINGIFY.
Referenced by main().
iBase_EntityHandle FACES[6][INTERVALS][INTERVALS] |
Definition at line 54 of file MOAB_iMesh_unit_tests.cpp.
Referenced by create_mesh(), test_getEntArrAdj_conn(), test_getEntArrAdj_down(), and test_getEntArrAdj_up().
iBase_EntityHandle HEXES[INTERVALS][INTERVALS][INTERVALS] |
Definition at line 53 of file MOAB_iMesh_unit_tests.cpp.
Referenced by create_mesh(), test_getEntArrAdj_conn(), test_getEntArrAdj_down(), test_getEntArrAdj_invalid_size(), test_getEntArrAdj_up(), and test_getEntArrAdj_vertex().
const int INTERVALS = 2 |
Definition at line 51 of file MOAB_iMesh_unit_tests.cpp.
Referenced by create_mesh(), QUAD_VERTS(), test_getEntArrAdj_conn(), test_getEntArrAdj_down(), test_getEntArrAdj_invalid_size(), test_getEntArrAdj_up(), and test_getEntArrAdj_vertex().
iBase_EntityHandle VERTS[INTERVALS+1][INTERVALS+1][INTERVALS+1] |
Definition at line 52 of file MOAB_iMesh_unit_tests.cpp.
Referenced by create_mesh(), HEX_VERTS(), QUAD_VERTS(), test_getEntArrAdj_invalid_size(), and test_getEntArrAdj_vertex().