MOAB: Mesh Oriented datABase
(version 5.5.0)
|
Go to the source code of this file.
Functions | |
void | tag_vals_from_gid (int global_id, std::vector< int > &values) |
unsigned char | bits_from_gid (int global_id) |
unsigned char | order_from_gid (int global_id) |
void | coords_from_gid (int global_id, double coords[3]) |
void | build_mesh () |
void | check_order_by_sets_and_adj () |
void | call_reorder () |
void | check_order () |
void | check_node_coords () |
void | check_quad_conn () |
void | check_set_meshset () |
void | check_list_meshset () |
void | check_big_meshset () |
void | check_handle_tag () |
void | check_varlen_tag () |
void | check_bit_tag () |
int | main () |
void | check_order (EntityType type) |
void | check_meshset_common (bool ordered) |
Variables | |
const char | GLOBAL_ID_NAME [] = "GLOBAL_ID" |
const char | SET_IDS_NAME [] = "SET_IDS" |
const char | SET_HANDLES_NAME [] = "SET_HANDLES" |
const char | CONN_IDS_NAME [] = "CONN_IDS" |
const char | CONN_NAME [] = "CONN_HANDLES" |
const char | VAR_INTS_NAME [] = "VAR_LEN_INTS" |
const char | BIT_NAME [] = "TEST_BIT_TAG" |
const int | ENTS_PER_SET = 6 |
const int | BITS_PER_TAG = 2 |
Core * | mbcore = 0 |
Interface * | mb = 0 |
Tag | order_tag = 0 |
const size_t | INTERVALS = 6 |
unsigned char bits_from_gid | ( | int | global_id | ) |
Definition at line 35 of file reorder_test.cpp.
References BITS_PER_TAG.
Referenced by build_mesh(), and check_bit_tag().
void build_mesh | ( | ) |
Definition at line 98 of file reorder_test.cpp.
References moab::Interface::add_entities(), BIT_NAME, bits_from_gid(), BITS_PER_TAG, CHECK_ERR, CONN_IDS_NAME, CONN_NAME, coords_from_gid(), moab::Interface::create_element(), moab::Interface::create_meshset(), moab::Interface::create_vertex(), ENTS_PER_SET, ErrorCode, GLOBAL_ID_NAME, INTERVALS, mb, MB_TAG_CREAT, MB_TAG_DENSE, MB_TAG_SPARSE, MB_TAG_VARLEN, MB_TYPE_BIT, MB_TYPE_HANDLE, MB_TYPE_INTEGER, MBQUAD, MESHSET_SET, MESHSET_TRACK_OWNER, order_from_gid(), order_tag, SET_HANDLES_NAME, SET_IDS_NAME, size, moab::Interface::tag_get_handle(), moab::Interface::tag_set_by_ptr(), moab::Interface::tag_set_data(), tag_vals_from_gid(), and VAR_INTS_NAME.
Referenced by main().
void call_reorder | ( | ) |
Definition at line 233 of file reorder_test.cpp.
References CHECK_ERR, ErrorCode, moab::ReorderTool::handle_order_from_int_tag(), mbcore, order_tag, and moab::ReorderTool::reorder_entities().
Referenced by main().
void check_big_meshset | ( | ) |
Definition at line 458 of file reorder_test.cpp.
References moab::Range::begin(), CHECK, CHECK_ERR, moab::Range::end(), ErrorCode, moab::Interface::get_entities_by_handle(), moab::Interface::get_entities_by_type(), mb, MBENTITYSET, and MBVERTEX.
Referenced by main().
void check_bit_tag | ( | ) |
Definition at line 558 of file reorder_test.cpp.
References BIT_NAME, bits_from_gid(), BITS_PER_TAG, CHECK_EQUAL, CHECK_ERR, ErrorCode, moab::Interface::get_entities_by_type(), GLOBAL_ID_NAME, mb, MB_TYPE_BIT, MB_TYPE_INTEGER, MBVERTEX, moab::Range::size(), moab::Interface::tag_get_data(), and moab::Interface::tag_get_handle().
Referenced by main().
void check_handle_tag | ( | ) |
Definition at line 482 of file reorder_test.cpp.
References moab::Range::begin(), CHECK, CHECK_EQUAL, CHECK_ERR, CONN_NAME, moab::Range::empty(), moab::Range::end(), ENTS_PER_SET, ErrorCode, moab::Interface::get_connectivity(), moab::Interface::get_entities_by_handle(), moab::Interface::get_entities_by_type(), moab::Interface::get_entities_by_type_and_tag(), moab::Interface::get_meshset_options(), mb, MB_TYPE_HANDLE, MBENTITYSET, MBQUAD, SET_HANDLES_NAME, moab::Interface::tag_get_data(), and moab::Interface::tag_get_handle().
Referenced by main().
void check_list_meshset | ( | ) |
Definition at line 453 of file reorder_test.cpp.
References check_meshset_common().
Referenced by main().
void check_meshset_common | ( | bool | ordered | ) |
Definition at line 395 of file reorder_test.cpp.
References moab::Range::begin(), CHECK, CHECK_ARRAYS_EQUAL, CHECK_EQUAL, CHECK_ERR, moab::Range::empty(), moab::Range::end(), ENTS_PER_SET, ErrorCode, moab::Interface::get_adjacencies(), moab::Interface::get_entities_by_handle(), moab::Interface::get_entities_by_type_and_tag(), moab::Interface::get_meshset_options(), GLOBAL_ID_NAME, mb, MB_TYPE_INTEGER, MBENTITYSET, MESHSET_TRACK_OWNER, SET_IDS_NAME, moab::Interface::tag_get_data(), and moab::Interface::tag_get_handle().
Referenced by check_list_meshset(), and check_set_meshset().
void check_node_coords | ( | ) |
Definition at line 348 of file reorder_test.cpp.
References CHECK_EQUAL, CHECK_ERR, coords_from_gid(), ErrorCode, moab::Interface::get_coords(), moab::Interface::get_entities_by_type(), GLOBAL_ID_NAME, mb, MB_TYPE_INTEGER, MBVERTEX, moab::Range::size(), moab::Interface::tag_get_data(), and moab::Interface::tag_get_handle().
Referenced by main().
void check_order | ( | ) |
Definition at line 342 of file reorder_test.cpp.
References MBQUAD, and MBVERTEX.
Referenced by main().
void check_order | ( | EntityType | type | ) |
Definition at line 242 of file reorder_test.cpp.
References CHECK, CHECK_ERR, ErrorCode, moab::Interface::get_entities_by_type(), GLOBAL_ID_NAME, mb, MB_TYPE_INTEGER, order_from_gid(), moab::Range::size(), moab::Interface::tag_get_data(), and moab::Interface::tag_get_handle().
void check_order_by_sets_and_adj | ( | ) |
Definition at line 261 of file reorder_test.cpp.
References moab::Interface::add_entities(), moab::Range::begin(), CHECK, CHECK_ERR, moab::Interface::create_meshset(), moab::Range::end(), ErrorCode, moab::GeomUtil::first(), moab::Interface::get_adjacencies(), moab::Interface::get_entities_by_dimension(), moab::Interface::get_entities_by_type(), moab::ReorderTool::handle_order_from_sets_and_adj(), moab::Range::insert(), mb, mbcore, MBVERTEX, MESHSET_SET, order_tag, moab::Range::size(), and moab::Interface::tag_get_data().
Referenced by main().
void check_quad_conn | ( | ) |
Definition at line 371 of file reorder_test.cpp.
References CHECK_EQUAL, CHECK_ERR, CONN_IDS_NAME, ErrorCode, moab::Interface::get_connectivity(), moab::Interface::get_entities_by_type(), GLOBAL_ID_NAME, mb, MB_TYPE_INTEGER, MBQUAD, moab::Interface::tag_get_data(), and moab::Interface::tag_get_handle().
Referenced by main().
void check_set_meshset | ( | ) |
Definition at line 448 of file reorder_test.cpp.
References check_meshset_common().
Referenced by main().
void check_varlen_tag | ( | ) |
Definition at line 530 of file reorder_test.cpp.
References CHECK_ARRAYS_EQUAL, CHECK_ERR, ErrorCode, moab::Interface::get_entities_by_type(), GLOBAL_ID_NAME, mb, MB_TYPE_INTEGER, MBVERTEX, moab::Range::size(), sizes, moab::Interface::tag_get_by_ptr(), moab::Interface::tag_get_data(), moab::Interface::tag_get_handle(), tag_vals_from_gid(), and VAR_INTS_NAME.
Referenced by main().
void coords_from_gid | ( | int | global_id, |
double | coords[3] | ||
) |
Definition at line 45 of file reorder_test.cpp.
References INTERVALS.
Referenced by build_mesh(), and check_node_coords().
int main | ( | ) |
Definition at line 67 of file reorder_test.cpp.
References build_mesh(), call_reorder(), check_big_meshset(), check_bit_tag(), check_handle_tag(), check_list_meshset(), check_node_coords(), check_order(), check_order_by_sets_and_adj(), check_quad_conn(), check_set_meshset(), check_varlen_tag(), mb, mbcore, and RUN_TEST.
unsigned char order_from_gid | ( | int | global_id | ) |
Definition at line 40 of file reorder_test.cpp.
Referenced by build_mesh(), and check_order().
void tag_vals_from_gid | ( | int | global_id, |
std::vector< int > & | values | ||
) |
Definition at line 25 of file reorder_test.cpp.
References INTERVALS.
Referenced by build_mesh(), and check_varlen_tag().
const char BIT_NAME[] = "TEST_BIT_TAG" |
Definition at line 14 of file reorder_test.cpp.
Referenced by build_mesh(), and check_bit_tag().
const int BITS_PER_TAG = 2 |
Definition at line 16 of file reorder_test.cpp.
Referenced by bits_from_gid(), build_mesh(), and check_bit_tag().
const char CONN_IDS_NAME[] = "CONN_IDS" |
Definition at line 11 of file reorder_test.cpp.
Referenced by build_mesh(), and check_quad_conn().
const char CONN_NAME[] = "CONN_HANDLES" |
Definition at line 12 of file reorder_test.cpp.
Referenced by build_mesh(), and check_handle_tag().
const int ENTS_PER_SET = 6 |
Definition at line 15 of file reorder_test.cpp.
Referenced by build_mesh(), check_handle_tag(), and check_meshset_common().
const char GLOBAL_ID_NAME[] = "GLOBAL_ID" |
Definition at line 8 of file reorder_test.cpp.
Referenced by build_mesh(), check_bit_tag(), check_meshset_common(), check_node_coords(), check_order(), check_quad_conn(), and check_varlen_tag().
const size_t INTERVALS = 6 |
Definition at line 22 of file reorder_test.cpp.
Referenced by build_mesh(), coords_from_gid(), and tag_vals_from_gid().
Interface* mb = 0 |
Definition at line 19 of file reorder_test.cpp.
Referenced by build_mesh(), check_big_meshset(), check_bit_tag(), check_handle_tag(), check_meshset_common(), check_node_coords(), check_order(), check_order_by_sets_and_adj(), check_quad_conn(), check_varlen_tag(), and main().
Core* mbcore = 0 |
Definition at line 18 of file reorder_test.cpp.
Referenced by call_reorder(), check_order_by_sets_and_adj(), moab::ScdInterface::construct_box(), create_hexes_and_verts(), moab::ScdInterface::create_scd_sequence(), do_test_mode(), main(), moab::Tqdcfr::read_block(), split_quads_test(), split_test_across(), test_write_invalid_elem(), test_write_read_many_tags(), testA(), and moab::ScdBox::~ScdBox().
Tag order_tag = 0 |
Definition at line 20 of file reorder_test.cpp.
Referenced by build_mesh(), call_reorder(), check_order_by_sets_and_adj(), moab::ReorderTool::handle_order_from_sets_and_adj(), and moab::ReorderTool::int_order_from_sets_and_adj().
const char SET_HANDLES_NAME[] = "SET_HANDLES" |
Definition at line 10 of file reorder_test.cpp.
Referenced by build_mesh(), and check_handle_tag().
const char SET_IDS_NAME[] = "SET_IDS" |
Definition at line 9 of file reorder_test.cpp.
Referenced by build_mesh(), and check_meshset_common().
const char VAR_INTS_NAME[] = "VAR_LEN_INTS" |
Definition at line 13 of file reorder_test.cpp.
Referenced by build_mesh(), and check_varlen_tag().