MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "TestUtil.hpp"
#include "moab/Core.hpp"
#include "MBTagConventions.hpp"
#include "moab/Range.hpp"
#include <cmath>
#include <algorithm>
Go to the source code of this file.
Macros | |
#define | IS_BUILDING_MB |
Functions | |
void | read_file (Interface &moab, const char *input_file) |
void | test_read_nodes () |
void | test_read_tets () |
void | test_read_prisms () |
void | test_read_hexes () |
void | test_read_material_set1 () |
void | test_read_material_set2 () |
int | main () |
Variables | |
static const char | example [] = "test.nas" |
#define IS_BUILDING_MB |
Definition at line 4 of file nastran_test.cpp.
int main | ( | ) |
Definition at line 25 of file nastran_test.cpp.
References RUN_TEST, test_read_hexes(), test_read_material_set1(), test_read_material_set2(), test_read_nodes(), test_read_prisms(), and test_read_tets().
void read_file | ( | Interface & | moab, |
const char * | input_file | ||
) |
Definition at line 39 of file nastran_test.cpp.
References CHECK_ERR, ErrorCode, and input_file.
Referenced by test_read_hexes(), test_read_material_set1(), test_read_material_set2(), test_read_nodes(), test_read_prisms(), and test_read_tets().
void test_read_hexes | ( | ) |
Definition at line 290 of file nastran_test.cpp.
References CHECK_ARRAYS_EQUAL, CHECK_EQUAL, CHECK_ERR, ErrorCode, example, moab::Core::get_connectivity(), moab::Core::get_entities_by_type(), moab::Core::globalId_tag(), id_tag, mb, MBHEX, read_file(), and moab::Core::tag_get_data().
Referenced by main().
void test_read_material_set1 | ( | ) |
Definition at line 321 of file nastran_test.cpp.
References CHECK_EQUAL, CHECK_ERR, ErrorCode, example, moab::Range::front(), moab::Core::get_entities_by_handle(), moab::Core::get_entities_by_type(), moab::Core::get_entities_by_type_and_tag(), MATERIAL_SET_TAG_NAME, mb, MB_TYPE_INTEGER, MBENTITYSET, MBTET, read_file(), moab::Range::size(), and moab::Core::tag_get_handle().
Referenced by main().
void test_read_material_set2 | ( | ) |
Definition at line 346 of file nastran_test.cpp.
References CHECK_EQUAL, CHECK_ERR, ErrorCode, example, moab::Range::front(), moab::Core::get_entities_by_handle(), moab::Core::get_entities_by_type(), moab::Core::get_entities_by_type_and_tag(), MATERIAL_SET_TAG_NAME, mb, MB_TYPE_INTEGER, MBENTITYSET, MBPRISM, read_file(), moab::Range::size(), and moab::Core::tag_get_handle().
Referenced by main().
void test_read_nodes | ( | ) |
Definition at line 44 of file nastran_test.cpp.
References CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, eps, ErrorCode, example, moab::Core::get_coords(), moab::Core::get_entities_by_type(), moab::Core::globalId_tag(), id_tag, mb, MBVERTEX, read_file(), and moab::Core::tag_get_data().
Referenced by main().
void test_read_prisms | ( | ) |
Definition at line 245 of file nastran_test.cpp.
References CHECK_ARRAYS_EQUAL, CHECK_EQUAL, CHECK_ERR, ErrorCode, example, moab::Core::get_connectivity(), moab::Core::get_entities_by_type(), moab::Core::globalId_tag(), id_tag, mb, MBPRISM, read_file(), swap(), and moab::Core::tag_get_data().
Referenced by main().
void test_read_tets | ( | ) |
Definition at line 202 of file nastran_test.cpp.
References CHECK_ARRAYS_EQUAL, CHECK_EQUAL, CHECK_ERR, ErrorCode, example, moab::Core::get_connectivity(), moab::Core::get_entities_by_type(), moab::Core::globalId_tag(), id_tag, mb, MBTET, read_file(), swap(), and moab::Core::tag_get_data().
Referenced by main().
|
static |
Definition at line 14 of file nastran_test.cpp.
Referenced by test_read_hexes(), test_read_material_set1(), test_read_material_set2(), test_read_nodes(), test_read_prisms(), and test_read_tets().