MOAB: Mesh Oriented datABase
(version 5.5.0)
|
Go to the source code of this file.
Variables | |
const EntityType | elem_types [] = { MBTRI, MBQUAD, MBTET, MBPYRAMID, MBPRISM, MBHEX, MBMAXTYPE } |
|
static |
Definition at line 544 of file mbcn_test.cpp.
References CHECK, CHECK_EQUAL, moab::CN::SideNumber(), and moab::CN::SubEntityVertexIndices().
Referenced by test_side_number_hex(), test_side_number_pri(), test_side_number_pyr(), test_side_number_quad(), test_side_number_tet(), and test_side_number_tri().
|
static |
Definition at line 567 of file mbcn_test.cpp.
References CHECK_EQUAL, moab::CN::SideNumber(), moab::CN::SubEntityType(), moab::CN::SubEntityVertexIndices(), and moab::CN::VerticesPerEntity().
Referenced by test_side_number_hex(), test_side_number_pri(), test_side_number_pyr(), and test_side_number_tet().
void do_test_sub_entity_type_2d | ( | EntityType | type | ) |
Definition at line 299 of file mbcn_test.cpp.
References CHECK_EQUAL, MBEDGE, MBVERTEX, moab::CN::SubEntityType(), and moab::CN::VerticesPerEntity().
Referenced by test_sub_entity_type_quad(), and test_sub_entity_type_tri().
void do_test_sub_entity_type_3d | ( | EntityType | type, |
int | num_faces, | ||
const EntityType * | face_types | ||
) |
Definition at line 309 of file mbcn_test.cpp.
References CHECK_EQUAL, MBEDGE, MBVERTEX, moab::CN::NumSubEntities(), moab::CN::SubEntityType(), and moab::CN::VerticesPerEntity().
Referenced by test_sub_entity_type_hex(), test_sub_entity_type_knife(), test_sub_entity_type_pri(), test_sub_entity_type_pyr(), and test_sub_entity_type_tet().
int main | ( | ) |
Definition at line 133 of file mbcn_test.cpp.
References prism_issue(), RUN_TEST, test_dimension(), test_dimension_pair(), test_has_mid_nodes_edge(), test_has_mid_nodes_hex(), test_has_mid_nodes_knife(), test_has_mid_nodes_pri(), test_has_mid_nodes_pyr(), test_has_mid_nodes_quad(), test_has_mid_nodes_tet(), test_has_mid_nodes_tri(), test_ho_node_index(), test_ho_node_parent(), test_num_sub_entities(), test_opposite_side_hex(), test_opposite_side_quad(), test_opposite_side_tet(), test_opposite_side_tri(), test_side_number_hex(), test_side_number_pri(), test_side_number_pyr(), test_side_number_quad(), test_side_number_tet(), test_side_number_tri(), test_sub_entity_indices_edge(), test_sub_entity_indices_hex(), test_sub_entity_indices_pri(), test_sub_entity_indices_pyr(), test_sub_entity_indices_quad(), test_sub_entity_indices_tet(), test_sub_entity_indices_tri(), test_sub_entity_indices_vtx(), test_sub_entity_nodes_hex_edges(), test_sub_entity_nodes_hex_faces(), test_sub_entity_nodes_kni_edges(), test_sub_entity_nodes_kni_faces(), test_sub_entity_nodes_pri_edges(), test_sub_entity_nodes_pri_faces(), test_sub_entity_nodes_pyr_edges(), test_sub_entity_nodes_pyr_faces(), test_sub_entity_nodes_quad_edges(), test_sub_entity_nodes_tet_edges(), test_sub_entity_nodes_tet_faces(), test_sub_entity_nodes_tri_edges(), test_sub_entity_type_edge(), test_sub_entity_type_hex(), test_sub_entity_type_knife(), test_sub_entity_type_pri(), test_sub_entity_type_pyr(), test_sub_entity_type_quad(), test_sub_entity_type_tet(), test_sub_entity_type_tri(), test_sub_entity_type_vtx(), test_type_names(), test_vertices_per_entity(), and test_wedges().
void prism_issue | ( | ) |
Definition at line 1166 of file mbcn_test.cpp.
References CHECK, moab::Core::create_element(), moab::Core::create_vertex(), moab::Core::get_adjacencies(), moab::Core::get_connectivity(), moab::Core::get_entities_by_dimension(), mb, and MBPRISM.
Referenced by main().
void test_0d_sub_entity_indices | ( | EntityType | type, |
int | num_vtx | ||
) |
Definition at line 382 of file mbcn_test.cpp.
References CHECK_EQUAL, and moab::CN::SubEntityVertexIndices().
Referenced by test_sub_entity_indices_edge(), test_sub_entity_indices_hex(), test_sub_entity_indices_pri(), test_sub_entity_indices_pyr(), test_sub_entity_indices_quad(), test_sub_entity_indices_tet(), and test_sub_entity_indices_tri().
void test_1d_sub_entity_indices | ( | EntityType | type, |
int | num_edges, | ||
const int(*) | edge_indices[2] | ||
) |
Definition at line 396 of file mbcn_test.cpp.
References CHECK_EQUAL, and moab::CN::SubEntityVertexIndices().
Referenced by test_sub_entity_indices_hex(), test_sub_entity_indices_pri(), test_sub_entity_indices_pyr(), test_sub_entity_indices_quad(), test_sub_entity_indices_tet(), and test_sub_entity_indices_tri().
void test_2d_sub_entity_indices | ( | EntityType | type, |
int | num_faces, | ||
const int(*) | face_indices[5] | ||
) |
Definition at line 418 of file mbcn_test.cpp.
References CHECK, CHECK_EQUAL, and moab::CN::SubEntityVertexIndices().
Referenced by test_sub_entity_indices_hex(), test_sub_entity_indices_pri(), test_sub_entity_indices_pyr(), and test_sub_entity_indices_tet().
void test_dimension | ( | ) |
Definition at line 235 of file mbcn_test.cpp.
References CHECK_EQUAL, moab::CN::Dimension(), MBEDGE, MBHEX, MBKNIFE, MBPOLYGON, MBPOLYHEDRON, MBPRISM, MBPYRAMID, MBQUAD, MBTET, MBTRI, and MBVERTEX.
Referenced by main().
void test_dimension_pair | ( | ) |
Definition at line 205 of file mbcn_test.cpp.
References CHECK_EQUAL, MBEDGE, MBPOLYGON, MBPOLYHEDRON, MBTET, MBTRI, MBVERTEX, and moab::CN::TypeDimensionMap.
Referenced by main().
void test_elem_as_sub_entity | ( | EntityType | type, |
int | dim, | ||
int | num_vertices | ||
) |
Definition at line 455 of file mbcn_test.cpp.
References CHECK_EQUAL, dim, and moab::CN::SubEntityVertexIndices().
Referenced by test_sub_entity_indices_edge(), test_sub_entity_indices_hex(), test_sub_entity_indices_pri(), test_sub_entity_indices_pyr(), test_sub_entity_indices_quad(), test_sub_entity_indices_tet(), test_sub_entity_indices_tri(), and test_sub_entity_indices_vtx().
void test_has_mid_nodes | ( | EntityType | type | ) |
Definition at line 884 of file mbcn_test.cpp.
References CHECK_EQUAL, dim, moab::CN::Dimension(), moab::CN::HasMidEdgeNodes(), moab::CN::HasMidFaceNodes(), moab::CN::HasMidNodes(), moab::CN::HasMidRegionNodes(), moab::CN::NumSubEntities(), and moab::CN::VerticesPerEntity().
Referenced by test_has_mid_nodes_edge(), test_has_mid_nodes_hex(), test_has_mid_nodes_knife(), test_has_mid_nodes_pri(), test_has_mid_nodes_pyr(), test_has_mid_nodes_quad(), test_has_mid_nodes_tet(), and test_has_mid_nodes_tri().
void test_has_mid_nodes_edge | ( | ) |
Definition at line 44 of file mbcn_test.cpp.
References MBEDGE, and test_has_mid_nodes().
Referenced by main().
void test_has_mid_nodes_hex | ( | ) |
Definition at line 72 of file mbcn_test.cpp.
References MBHEX, and test_has_mid_nodes().
Referenced by main().
void test_has_mid_nodes_knife | ( | ) |
Definition at line 68 of file mbcn_test.cpp.
References MBKNIFE, and test_has_mid_nodes().
Referenced by main().
void test_has_mid_nodes_pri | ( | ) |
Definition at line 64 of file mbcn_test.cpp.
References MBPRISM, and test_has_mid_nodes().
Referenced by main().
void test_has_mid_nodes_pyr | ( | ) |
Definition at line 60 of file mbcn_test.cpp.
References MBPYRAMID, and test_has_mid_nodes().
Referenced by main().
void test_has_mid_nodes_quad | ( | ) |
Definition at line 52 of file mbcn_test.cpp.
References MBQUAD, and test_has_mid_nodes().
Referenced by main().
void test_has_mid_nodes_tet | ( | ) |
Definition at line 56 of file mbcn_test.cpp.
References MBTET, and test_has_mid_nodes().
Referenced by main().
void test_has_mid_nodes_tri | ( | ) |
Definition at line 48 of file mbcn_test.cpp.
References MBTRI, and test_has_mid_nodes().
Referenced by main().
void test_ho_node_index | ( | ) |
Definition at line 991 of file mbcn_test.cpp.
References CHECK_EQUAL, dim, moab::CN::Dimension(), elem_types, moab::CN::HONodeIndex(), MBMAXTYPE, moab::CN::NumSubEntities(), t, and moab::CN::VerticesPerEntity().
Referenced by main().
void test_ho_node_parent | ( | ) |
Definition at line 923 of file mbcn_test.cpp.
References CHECK_EQUAL, dim, moab::CN::Dimension(), elem_types, moab::CN::HONodeParent(), MBMAXTYPE, moab::CN::NumSubEntities(), t, and moab::CN::VerticesPerEntity().
Referenced by main().
void test_num_sub_entities | ( | ) |
Definition at line 263 of file mbcn_test.cpp.
References CHECK_EQUAL, MBEDGE, MBHEX, MBKNIFE, MBPRISM, MBPYRAMID, MBQUAD, MBTET, MBTRI, MBVERTEX, and moab::CN::NumSubEntities().
Referenced by main().
void test_opposite_side_hex | ( | ) |
Definition at line 772 of file mbcn_test.cpp.
References CHECK_EQUAL, dim, MBHEX, and moab::CN::OppositeSide().
Referenced by main().
void test_opposite_side_quad | ( | ) |
Definition at line 670 of file mbcn_test.cpp.
References CHECK_EQUAL, dim, MBQUAD, and moab::CN::OppositeSide().
Referenced by main().
void test_opposite_side_tet | ( | ) |
Definition at line 708 of file mbcn_test.cpp.
References CHECK_EQUAL, dim, MBTET, and moab::CN::OppositeSide().
Referenced by main().
void test_opposite_side_tri | ( | ) |
Definition at line 641 of file mbcn_test.cpp.
References CHECK_EQUAL, dim, MBTRI, and moab::CN::OppositeSide().
Referenced by main().
void test_side_number_hex | ( | ) |
Definition at line 633 of file mbcn_test.cpp.
References do_test_side_number_1d(), do_test_side_number_2d(), and MBHEX.
Referenced by main().
void test_side_number_pri | ( | ) |
Definition at line 625 of file mbcn_test.cpp.
References do_test_side_number_1d(), do_test_side_number_2d(), and MBPRISM.
Referenced by main().
void test_side_number_pyr | ( | ) |
Definition at line 617 of file mbcn_test.cpp.
References do_test_side_number_1d(), do_test_side_number_2d(), and MBPYRAMID.
Referenced by main().
void test_side_number_quad | ( | ) |
Definition at line 603 of file mbcn_test.cpp.
References do_test_side_number_1d(), and MBQUAD.
Referenced by main().
void test_side_number_tet | ( | ) |
Definition at line 609 of file mbcn_test.cpp.
References do_test_side_number_1d(), do_test_side_number_2d(), and MBTET.
Referenced by main().
void test_side_number_tri | ( | ) |
Definition at line 597 of file mbcn_test.cpp.
References do_test_side_number_1d(), and MBTRI.
Referenced by main().
void test_sub_entity_indices_edge | ( | ) |
Definition at line 470 of file mbcn_test.cpp.
References MBEDGE, test_0d_sub_entity_indices(), and test_elem_as_sub_entity().
Referenced by main().
void test_sub_entity_indices_hex | ( | ) |
Definition at line 530 of file mbcn_test.cpp.
References MBHEX, test_0d_sub_entity_indices(), test_1d_sub_entity_indices(), test_2d_sub_entity_indices(), and test_elem_as_sub_entity().
Referenced by main().
void test_sub_entity_indices_pri | ( | ) |
Definition at line 517 of file mbcn_test.cpp.
References MBPRISM, test_0d_sub_entity_indices(), test_1d_sub_entity_indices(), test_2d_sub_entity_indices(), and test_elem_as_sub_entity().
Referenced by main().
void test_sub_entity_indices_pyr | ( | ) |
Definition at line 504 of file mbcn_test.cpp.
References MBPYRAMID, test_0d_sub_entity_indices(), test_1d_sub_entity_indices(), test_2d_sub_entity_indices(), and test_elem_as_sub_entity().
Referenced by main().
void test_sub_entity_indices_quad | ( | ) |
Definition at line 484 of file mbcn_test.cpp.
References MBQUAD, test_0d_sub_entity_indices(), test_1d_sub_entity_indices(), and test_elem_as_sub_entity().
Referenced by main().
void test_sub_entity_indices_tet | ( | ) |
Definition at line 492 of file mbcn_test.cpp.
References MBTET, test_0d_sub_entity_indices(), test_1d_sub_entity_indices(), test_2d_sub_entity_indices(), and test_elem_as_sub_entity().
Referenced by main().
void test_sub_entity_indices_tri | ( | ) |
Definition at line 476 of file mbcn_test.cpp.
References MBTRI, test_0d_sub_entity_indices(), test_1d_sub_entity_indices(), and test_elem_as_sub_entity().
Referenced by main().
void test_sub_entity_indices_vtx | ( | ) |
Definition at line 465 of file mbcn_test.cpp.
References MBVERTEX, and test_elem_as_sub_entity().
Referenced by main().
void test_sub_entity_nodes | ( | EntityType | parent, |
int | num_nodes, | ||
int | sub_dimension | ||
) |
Definition at line 1085 of file mbcn_test.cpp.
References CHECK, CHECK_EQUAL, moab::CN::Dimension(), moab::CN::HasMidNodes(), moab::CN::HONodeIndex(), moab::MAX_SUB_ENTITY_VERTICES, moab::CN::MID_EDGE_BIT, moab::CN::MID_FACE_BIT, moab::CN::NumSubEntities(), moab::CN::SideNumber(), moab::CN::SubEntityNodeIndices(), moab::CN::SubEntityType(), moab::CN::SubEntityVertexIndices(), and moab::CN::VerticesPerEntity().
void test_sub_entity_nodes | ( | EntityType | parent, |
int | sub_dimension | ||
) |
Definition at line 1053 of file mbcn_test.cpp.
References CHECK, dim, moab::CN::Dimension(), moab::CN::NumSubEntities(), and moab::CN::VerticesPerEntity().
Referenced by test_sub_entity_nodes_hex_edges(), test_sub_entity_nodes_hex_faces(), test_sub_entity_nodes_kni_edges(), test_sub_entity_nodes_kni_faces(), test_sub_entity_nodes_pri_edges(), test_sub_entity_nodes_pri_faces(), test_sub_entity_nodes_pyr_edges(), test_sub_entity_nodes_pyr_faces(), test_sub_entity_nodes_quad_edges(), test_sub_entity_nodes_tet_edges(), test_sub_entity_nodes_tet_faces(), and test_sub_entity_nodes_tri_edges().
void test_sub_entity_nodes_hex_edges | ( | ) |
Definition at line 122 of file mbcn_test.cpp.
References MBHEX, and test_sub_entity_nodes().
Referenced by main().
void test_sub_entity_nodes_hex_faces | ( | ) |
Definition at line 126 of file mbcn_test.cpp.
References MBHEX, and test_sub_entity_nodes().
Referenced by main().
void test_sub_entity_nodes_kni_edges | ( | ) |
Definition at line 114 of file mbcn_test.cpp.
References MBKNIFE, and test_sub_entity_nodes().
Referenced by main().
void test_sub_entity_nodes_kni_faces | ( | ) |
Definition at line 118 of file mbcn_test.cpp.
References MBKNIFE, and test_sub_entity_nodes().
Referenced by main().
void test_sub_entity_nodes_pri_edges | ( | ) |
Definition at line 106 of file mbcn_test.cpp.
References MBPRISM, and test_sub_entity_nodes().
Referenced by main().
void test_sub_entity_nodes_pri_faces | ( | ) |
Definition at line 110 of file mbcn_test.cpp.
References MBPRISM, and test_sub_entity_nodes().
Referenced by main().
void test_sub_entity_nodes_pyr_edges | ( | ) |
Definition at line 98 of file mbcn_test.cpp.
References MBPYRAMID, and test_sub_entity_nodes().
Referenced by main().
void test_sub_entity_nodes_pyr_faces | ( | ) |
Definition at line 102 of file mbcn_test.cpp.
References MBPYRAMID, and test_sub_entity_nodes().
Referenced by main().
void test_sub_entity_nodes_quad_edges | ( | ) |
Definition at line 86 of file mbcn_test.cpp.
References MBQUAD, and test_sub_entity_nodes().
Referenced by main().
void test_sub_entity_nodes_tet_edges | ( | ) |
Definition at line 90 of file mbcn_test.cpp.
References MBTET, and test_sub_entity_nodes().
Referenced by main().
void test_sub_entity_nodes_tet_faces | ( | ) |
Definition at line 94 of file mbcn_test.cpp.
References MBTET, and test_sub_entity_nodes().
Referenced by main().
void test_sub_entity_nodes_tri_edges | ( | ) |
Definition at line 82 of file mbcn_test.cpp.
References MBTRI, and test_sub_entity_nodes().
Referenced by main().
void test_sub_entity_type_edge | ( | ) |
Definition at line 335 of file mbcn_test.cpp.
References CHECK_EQUAL, MBEDGE, MBVERTEX, and moab::CN::SubEntityType().
Referenced by main().
void test_sub_entity_type_hex | ( | ) |
Definition at line 376 of file mbcn_test.cpp.
References do_test_sub_entity_type_3d(), MBHEX, and MBQUAD.
Referenced by main().
void test_sub_entity_type_knife | ( | ) |
Definition at line 370 of file mbcn_test.cpp.
References do_test_sub_entity_type_3d(), MBKNIFE, and MBQUAD.
Referenced by main().
void test_sub_entity_type_pri | ( | ) |
Definition at line 364 of file mbcn_test.cpp.
References do_test_sub_entity_type_3d(), MBPRISM, MBQUAD, and MBTRI.
Referenced by main().
void test_sub_entity_type_pyr | ( | ) |
Definition at line 358 of file mbcn_test.cpp.
References do_test_sub_entity_type_3d(), MBPYRAMID, MBQUAD, and MBTRI.
Referenced by main().
void test_sub_entity_type_quad | ( | ) |
Definition at line 347 of file mbcn_test.cpp.
References do_test_sub_entity_type_2d(), and MBQUAD.
Referenced by main().
void test_sub_entity_type_tet | ( | ) |
Definition at line 352 of file mbcn_test.cpp.
References do_test_sub_entity_type_3d(), MBTET, and MBTRI.
Referenced by main().
void test_sub_entity_type_tri | ( | ) |
Definition at line 342 of file mbcn_test.cpp.
References do_test_sub_entity_type_2d(), and MBTRI.
Referenced by main().
void test_sub_entity_type_vtx | ( | ) |
Definition at line 330 of file mbcn_test.cpp.
References CHECK_EQUAL, MBVERTEX, and moab::CN::SubEntityType().
Referenced by main().
void test_type_names | ( | ) |
Definition at line 226 of file mbcn_test.cpp.
References CHECK_EQUAL, moab::CN::EntityTypeFromName(), moab::CN::EntityTypeName(), MBMAXTYPE, MBVERTEX, and t.
Referenced by main().
void test_vertices_per_entity | ( | ) |
Definition at line 250 of file mbcn_test.cpp.
References CHECK_EQUAL, MBEDGE, MBHEX, MBKNIFE, MBPRISM, MBPYRAMID, MBQUAD, MBTET, MBTRI, MBVERTEX, and moab::CN::VerticesPerEntity().
Referenced by main().
void test_wedges | ( | ) |
Definition at line 1233 of file mbcn_test.cpp.
References CHECK, moab::Core::create_element(), moab::Core::create_vertex(), moab::Core::get_adjacencies(), moab::Core::get_connectivity(), moab::Core::get_entities_by_dimension(), moab::Core::id_from_handle(), mb, and MBPRISM.
Referenced by main().
Definition at line 202 of file mbcn_test.cpp.
Referenced by test_ho_node_index(), and test_ho_node_parent().