MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "moab/Core.hpp"
#include "moab/Range.hpp"
#include "TestRunner.hpp"
#include "ReadHDF5.hpp"
#include "MBTagConventions.hpp"
#include "moab/FileOptions.hpp"
#include <vector>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <limits>
Go to the source code of this file.
Macros | |
#define | READ_OPTS "BUFFER_SIZE=256" |
Enumerations | |
enum | GatherTestMode { GATHER_SETS , GATHER_CONTENTS , GATHER_NONE } |
Functions | |
static void | test_read_nothing_common (bool non_existant) |
static void | test_read_nodes_common (int num_read_sets, bool blocked_coordinate_io) |
static void | test_read_handle_tag_common (bool var_len) |
void | create_mesh (bool create_element_sets, bool create_vertex_sets, bool tag_elements_with_id, bool tag_vertices_with_id, const char *adj_elem_tag_name=0, bool var_len_adj_elems=false) |
int | identify_set (Interface &mb, const Range &verts) |
int | identify_set (Interface &mb, EntityHandle set) |
static Tag | check_tag (Interface &mb, const char *name, TagType storage, DataType type, int size) |
void | test_gather_sets_common (bool contained_sets, GatherTestMode mode, bool no_parent_containing_sets=false) |
void | test_gather_sets_ranged (bool contained_sets, GatherTestMode mode, bool no_parent_containing_sets=false) |
void | test_read_empty_set () |
Read a set containing no entities. More... | |
void | test_read_non_existant_set () |
Specify ID that doesn't exist in file. More... | |
void | test_read_one_set_nodes () |
Read in the nodes contained in a set. More... | |
void | test_read_one_set_nodes_blocked () |
Read in the nodes contained in a set. More... | |
void | test_read_one_set_elems () |
Read in the elems contained in a set. More... | |
void | test_read_one_set_polyhedra () |
Read in the polyhedra contained in a set. More... | |
void | test_read_set_sets () |
void | test_read_two_sets_nodes () |
Read in the nodes contained in a sets. More... | |
void | test_read_two_sets_elems () |
Read in the elems contained in a sets. More... | |
void | test_read_child_sets_only () |
void | test_read_child_set_contents () |
void | test_read_no_child_sets () |
void | test_read_contained_sets_only () |
void | test_read_contained_set_contents () |
void | test_read_no_contained_sets () |
void | test_read_containing_sets () |
void | test_read_adjacencies () |
Test reading of explicit adjacencies. More... | |
void | test_read_double_tag () |
Test reading of sparse double tag data. More... | |
void | test_read_opaque_tag () |
Test reading of sparse opaque tag data. More... | |
void | test_read_handle_tag () |
Test reading of sparse handle tag data. More... | |
void | test_var_len_tag () |
Test reading of variable-length tag data. More... | |
void | test_read_tagged_elems () |
void | test_read_tagged_nodes () |
void | test_read_sides () |
void | test_read_ids () |
void | test_read_partial_ids () |
int | main (int argc, char *argv[]) |
static void | vtx_coords (int set_id, int j, int num_sets, double coords[3]) |
static void | check_children (bool contents, GatherTestMode mode, Interface &mb, int id, Tag id_tag, EntityHandle file) |
static void | check_num_verts (Interface &mb, Tag tag, int id, int num_vtx) |
void | write_id_test_file () |
Variables | |
const char | TEST_FILE [] = "partial.h5m" |
const char | ID_TAG_NAME [] = "test_id_tag" |
const int | MBQUAD_INT = 20 |
const int | NUM_SETS = 10 |
const int | SET_WIDTH = ( MBQUAD_INT + NUM_SETS - 1 ) / NUM_SETS |
const char | LOGICAL_NAME [] = "logical" |
const char | CENTROID_NAME [] = "centroid" |
const char * | set_read_opts [] = { "SETS", "CONTENTS", "NONE" } |
const int | expected_ids [] = { 2, 4, 6, 8, 10, 12, 14, 16, 18 } |
const int | expected_vols [] = { 3, 7, 10 } |
#define READ_OPTS "BUFFER_SIZE=256" |
Definition at line 21 of file h5partial.cpp.
enum GatherTestMode |
Enumerator | |
---|---|
GATHER_SETS | |
GATHER_CONTENTS | |
GATHER_NONE |
Definition at line 51 of file h5partial.cpp.
|
static |
Definition at line 949 of file h5partial.cpp.
References CHECK, CHECK_EQUAL, CHECK_ERR, children, moab::Range::clear(), moab::Range::empty(), moab::Range::end(), moab::Range::erase(), ErrorCode, moab::Range::find(), moab::Range::front(), GATHER_CONTENTS, GATHER_NONE, moab::Core::get_child_meshsets(), moab::Core::get_connectivity(), moab::Core::get_coords(), moab::Core::get_entities_by_type(), moab::Core::get_entities_by_type_and_tag(), id_tag, mb, MBEDGE, MBENTITYSET, moab::Range::size(), and moab::Core::tag_get_data().
Referenced by test_gather_sets_common().
Definition at line 1192 of file h5partial.cpp.
References CHECK_EQUAL, CHECK_ERR, moab::Range::clear(), ErrorCode, moab::Range::front(), moab::Core::get_entities_by_type(), moab::Core::get_entities_by_type_and_tag(), mb, MBENTITYSET, MBVERTEX, and moab::Range::size().
Referenced by test_read_containing_sets().
|
static |
Definition at line 610 of file h5partial.cpp.
References CHECK_EQUAL, CHECK_ERR, ErrorCode, mb, MB_VARIABLE_DATA_LENGTH, size, moab::Core::tag_get_data_type(), moab::Core::tag_get_handle(), moab::Core::tag_get_length(), moab::Core::tag_get_type(), and TagType.
Referenced by test_read_double_tag(), test_read_handle_tag_common(), and test_read_opaque_tag().
void create_mesh | ( | bool | create_element_sets, |
bool | create_vertex_sets, | ||
bool | tag_elements_with_id, | ||
bool | tag_vertices_with_id, | ||
const char * | adj_elem_tag_name = 0 , |
||
bool | var_len_adj_elems = false |
||
) |
Create a regular MBQUAD_INT^2 element quad mesh with regularly spaced coordinates in the range [1,100]. Group elements into 10 vertical strips MBQUAD_INT/10 elements wide. Tag elements, vertices and/or sets with ID in [1,10] stored in ID_TAG_NAME tag. Write new mesh to TEST_FILE.
Definition at line 387 of file h5partial.cpp.
References moab::Core::add_entities(), CENTROID_NAME, CHECK_ERR, moab::Core::create_element(), moab::Core::create_meshset(), moab::Core::create_vertex(), ErrorCode, id_tag, ID_TAG_NAME, LOGICAL_NAME, mb, MB_TAG_DENSE, MB_TAG_EXCL, MB_TAG_SPARSE, MB_TAG_VARLEN, MB_TYPE_DOUBLE, MB_TYPE_HANDLE, MB_TYPE_INTEGER, MB_TYPE_OPAQUE, MBQUAD, MBQUAD_INT, NUM_SETS, SET_WIDTH, moab::Core::tag_get_handle(), moab::Core::tag_set_by_ptr(), moab::Core::tag_set_data(), TEST_FILE, and moab::Core::write_file().
Referenced by test_read_containing_sets(), test_read_double_tag(), test_read_handle_tag_common(), test_read_one_set_elems(), test_read_opaque_tag(), test_read_tagged_elems(), test_read_tagged_nodes(), and test_read_two_sets_elems().
Definition at line 501 of file h5partial.cpp.
References moab::Range::begin(), CHECK, CHECK_EQUAL, CHECK_ERR, moab::Range::end(), ErrorCode, moab::Core::get_coords(), mb, MBQUAD_INT, SET_WIDTH, and moab::Range::size().
Referenced by identify_set(), test_read_one_set_elems(), test_read_tagged_elems(), test_read_tagged_nodes(), and test_read_two_sets_elems().
int identify_set | ( | Interface & | mb, |
EntityHandle | set | ||
) |
Definition at line 543 of file h5partial.cpp.
References moab::Range::begin(), CHECK_ERR, moab::Range::end(), moab::Range::erase(), ErrorCode, moab::Core::get_adjacencies(), moab::Core::get_entities_by_handle(), identify_set(), moab::Range::lower_bound(), mb, MBENTITYSET, MBVERTEX, moab::Range::merge(), moab::Interface::UNION, and moab::Range::upper_bound().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 180 of file h5partial.cpp.
References moab::fail(), REGISTER_TEST, RUN_TESTS, test_read_adjacencies(), test_read_child_set_contents(), test_read_child_sets_only(), test_read_contained_set_contents(), test_read_contained_sets_only(), test_read_containing_sets(), test_read_double_tag(), test_read_empty_set(), test_read_handle_tag(), test_read_ids(), test_read_no_child_sets(), test_read_no_contained_sets(), test_read_non_existant_set(), test_read_one_set_elems(), test_read_one_set_nodes(), test_read_one_set_nodes_blocked(), test_read_one_set_polyhedra(), test_read_opaque_tag(), test_read_partial_ids(), test_read_set_sets(), test_read_sides(), test_read_tagged_elems(), test_read_tagged_nodes(), test_read_two_sets_elems(), test_read_two_sets_nodes(), and test_var_len_tag().
void test_gather_sets_common | ( | bool | contained_sets, |
GatherTestMode | mode, | ||
bool | no_parent_containing_sets = false |
||
) |
Definition at line 1024 of file h5partial.cpp.
References moab::Core::add_child_meshset(), moab::Core::add_entities(), CHECK, check_children(), CHECK_ERR, moab::Core::create_element(), moab::Core::create_meshset(), moab::Core::create_vertex(), moab::Core::delete_mesh(), ErrorCode, id_tag, ID_TAG_NAME, INT, moab::Core::load_file(), mb, MB_TAG_EXCL, MB_TAG_SPARSE, MB_TYPE_INTEGER, MBEDGE, MESHSET_SET, READ_OPTS, set_read_opts, moab::Core::tag_get_handle(), moab::Core::tag_set_data(), TEST_FILE, and moab::Core::write_file().
Referenced by test_read_child_set_contents(), test_read_child_sets_only(), test_read_contained_set_contents(), test_read_contained_sets_only(), test_read_no_child_sets(), and test_read_no_contained_sets().
void test_gather_sets_ranged | ( | bool | contained_sets, |
GatherTestMode | mode, | ||
bool | no_parent_containing_sets = false |
||
) |
Definition at line 1090 of file h5partial.cpp.
References moab::Core::add_child_meshset(), moab::Core::add_entities(), moab::Range::begin(), CHECK, CHECK_EQUAL, CHECK_ERR, moab::Range::clear(), moab::Core::create_meshset(), moab::Core::create_vertices(), moab::Core::delete_mesh(), moab::Range::end(), ErrorCode, GATHER_CONTENTS, GATHER_NONE, GATHER_SETS, moab::Core::get_coords(), moab::Core::get_entities_by_type(), id_tag, ID_TAG_NAME, moab::Core::load_file(), mb, MB_TAG_EXCL, MB_TAG_SPARSE, MB_TYPE_INTEGER, MBENTITYSET, MBVERTEX, MESHSET_SET, READ_OPTS, read_sets(), set_read_opts, moab::Core::tag_get_handle(), moab::Core::tag_set_data(), TEST_FILE, and moab::Core::write_file().
Referenced by test_read_child_set_contents(), test_read_child_sets_only(), test_read_contained_set_contents(), test_read_contained_sets_only(), test_read_no_child_sets(), and test_read_no_contained_sets().
void test_read_adjacencies | ( | ) |
Test reading of explicit adjacencies.
Definition at line 1241 of file h5partial.cpp.
References moab::Interface::add_adjacencies(), moab::Core::add_entities(), moab::Range::back(), CHECK, CHECK_EQUAL, CHECK_ERR, moab::Range::clear(), moab::Core::create_element(), moab::Core::create_meshset(), moab::Core::create_vertex(), moab::Core::delete_mesh(), ErrorCode, moab::Range::front(), moab::Core::get_adjacencies(), moab::Core::get_entities_by_type(), h1, id_tag, ID_TAG_NAME, moab::Core::load_file(), mb, MB_TAG_EXCL, MB_TAG_SPARSE, MB_TYPE_INTEGER, MBEDGE, MBHEX, MESHSET_SET, READ_OPTS, moab::Range::size(), moab::Core::tag_get_handle(), moab::Core::tag_set_data(), TEST_FILE, and moab::Core::write_file().
Referenced by main().
void test_read_child_set_contents | ( | ) |
Definition at line 113 of file h5partial.cpp.
References GATHER_CONTENTS, test_gather_sets_common(), and test_gather_sets_ranged().
Referenced by main().
void test_read_child_sets_only | ( | ) |
For any set selected to be read by either explicit designation, containing read entities, or contained in an explcitly designated set, any child sets are also read. Check that here.
Definition at line 108 of file h5partial.cpp.
References GATHER_SETS, test_gather_sets_common(), and test_gather_sets_ranged().
Referenced by main().
void test_read_contained_set_contents | ( | ) |
Definition at line 132 of file h5partial.cpp.
References GATHER_CONTENTS, test_gather_sets_common(), and test_gather_sets_ranged().
Referenced by main().
void test_read_contained_sets_only | ( | ) |
For any set selected to be read by either explicit designation, containing read entities, or contained in an explcitly designated set, any contained sets are also read. Check that here.
Definition at line 127 of file h5partial.cpp.
References GATHER_SETS, test_gather_sets_common(), and test_gather_sets_ranged().
Referenced by main().
void test_read_containing_sets | ( | ) |
Read in the sets contained in a set. Should read all sets containing read elements or nodes and all sets that are contained the the specified "read" set. Test the former here.
Definition at line 1210 of file h5partial.cpp.
References CHECK_ERR, check_num_verts(), create_mesh(), ErrorCode, id_tag, ID_TAG_NAME, moab::Core::load_file(), mb, MB_TYPE_INTEGER, MBQUAD_INT, NUM_SETS, READ_OPTS, SET_WIDTH, moab::Core::tag_get_handle(), and TEST_FILE.
Referenced by main().
void test_read_double_tag | ( | ) |
Test reading of sparse double tag data.
Definition at line 640 of file h5partial.cpp.
References moab::Range::begin(), CENTROID_NAME, CHECK, CHECK_ERR, CHECK_REAL_EQUAL, check_tag(), create_mesh(), moab::Range::empty(), moab::Range::end(), ErrorCode, moab::Core::get_coords(), moab::Core::get_entities_by_type(), ID_TAG_NAME, moab::Core::load_file(), mb, MB_TAG_DENSE, MB_TYPE_DOUBLE, MBVERTEX, READ_OPTS, moab::Core::tag_get_data(), and TEST_FILE.
Referenced by main().
void test_read_empty_set | ( | ) |
Read a set containing no entities.
Definition at line 61 of file h5partial.cpp.
References test_read_nothing_common().
Referenced by main().
void test_read_handle_tag | ( | ) |
Test reading of sparse handle tag data.
Definition at line 159 of file h5partial.cpp.
References test_read_handle_tag_common().
Referenced by main().
|
static |
Definition at line 691 of file h5partial.cpp.
References moab::Range::begin(), CHECK, CHECK_EQUAL, CHECK_ERR, check_tag(), create_mesh(), moab::Range::empty(), moab::Range::end(), ErrorCode, moab::Core::get_adjacencies(), moab::Core::get_entities_by_type(), ID_TAG_NAME, moab::Core::load_file(), mb, MB_TAG_DENSE, MB_TYPE_HANDLE, MBVERTEX, READ_OPTS, moab::Core::tag_get_by_ptr(), TEST_FILE, and moab::Interface::UNION.
Referenced by test_read_handle_tag(), and test_var_len_tag().
void test_read_ids | ( | ) |
Definition at line 1445 of file h5partial.cpp.
References CHECK_EQUAL, CHECK_ERR, ErrorCode, expected_ids, ID_TAG_NAME, moab::ReadHDF5::read_tag_values(), TEST_FILE, and write_id_test_file().
Referenced by main().
void test_read_no_child_sets | ( | ) |
Definition at line 118 of file h5partial.cpp.
References GATHER_NONE, test_gather_sets_common(), and test_gather_sets_ranged().
Referenced by main().
void test_read_no_contained_sets | ( | ) |
Definition at line 137 of file h5partial.cpp.
References GATHER_NONE, test_gather_sets_common(), and test_gather_sets_ranged().
Referenced by main().
|
static |
Definition at line 289 of file h5partial.cpp.
References moab::Core::add_entities(), CHECK, CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, moab::Core::create_meshset(), moab::Core::create_vertex(), moab::Core::delete_mesh(), moab::Range::empty(), moab::Range::end(), moab::Range::erase(), ErrorCode, moab::Range::find(), moab::Core::get_coords(), moab::Core::get_entities_by_handle(), moab::Core::get_entities_by_type(), moab::Core::get_number_entities_by_dimension(), id_tag, ID_TAG_NAME, moab::Core::load_file(), mb, MB_TAG_EXCL, MB_TAG_SPARSE, MB_TYPE_INTEGER, MBENTITYSET, MESHSET_SET, moab::Range::pop_front(), READ_OPTS, size, moab::Range::size(), moab::Core::tag_get_data(), moab::Core::tag_get_handle(), moab::Core::tag_set_data(), TEST_FILE, vtx_coords(), and moab::Core::write_file().
Referenced by test_read_one_set_nodes(), test_read_one_set_nodes_blocked(), and test_read_two_sets_nodes().
void test_read_non_existant_set | ( | ) |
Specify ID that doesn't exist in file.
Definition at line 67 of file h5partial.cpp.
References test_read_nothing_common().
Referenced by main().
|
static |
Definition at line 223 of file h5partial.cpp.
References moab::Core::add_entities(), CHECK, CHECK_EQUAL, CHECK_ERR, moab::Core::create_meshset(), moab::Core::create_vertices(), moab::Core::delete_mesh(), moab::Range::end(), ErrorCode, moab::Range::find(), moab::Core::get_entities_by_type(), moab::Core::get_number_entities_by_type(), id_tag, ID_TAG_NAME, moab::Core::load_file(), mb, MB_ENTITY_NOT_FOUND, MB_TAG_EXCL, MB_TAG_SPARSE, MB_TYPE_INTEGER, MBENTITYSET, MBVERTEX, MESHSET_SET, READ_OPTS, moab::Range::size(), t, moab::Core::tag_get_handle(), moab::Core::tag_set_data(), TEST_FILE, and moab::Core::write_file().
Referenced by test_read_empty_set(), and test_read_non_existant_set().
void test_read_one_set_elems | ( | ) |
Read in the elems contained in a set.
Definition at line 558 of file h5partial.cpp.
References CHECK_EQUAL, CHECK_ERR, create_mesh(), moab::Core::delete_mesh(), ErrorCode, moab::Core::get_entities_by_type(), ID_TAG_NAME, identify_set(), moab::Core::load_file(), mb, MBVERTEX, NUM_SETS, READ_OPTS, and TEST_FILE.
Referenced by main().
void test_read_one_set_nodes | ( | ) |
Read in the nodes contained in a set.
Definition at line 73 of file h5partial.cpp.
References test_read_nodes_common().
Referenced by main().
void test_read_one_set_nodes_blocked | ( | ) |
Read in the nodes contained in a set.
Definition at line 79 of file h5partial.cpp.
References test_read_nodes_common().
Referenced by main().
void test_read_one_set_polyhedra | ( | ) |
Read in the polyhedra contained in a set.
Definition at line 779 of file h5partial.cpp.
References moab::Core::add_entities(), moab::Range::begin(), CHECK, CHECK_EQUAL, CHECK_ERR, moab::Core::create_element(), moab::Core::create_meshset(), moab::Core::create_vertex(), moab::Core::delete_entities(), moab::Core::delete_mesh(), moab::Range::end(), ErrorCode, moab::Core::get_adjacencies(), moab::Core::get_connectivity(), moab::Core::get_coords(), moab::Core::get_entities_by_type(), id_tag, ID_TAG_NAME, moab::Core::load_file(), mb, MB_SUCCESS, MB_TAG_EXCL, MB_TAG_NOT_FOUND, MB_TAG_SPARSE, MB_TYPE_HANDLE, MB_TYPE_INTEGER, MBHEX, MBPOLYHEDRON, MBTRI, READ_OPTS, moab::Range::size(), moab::Core::tag_get_data(), moab::Core::tag_get_handle(), moab::Core::tag_set_data(), TEST_FILE, moab::Interface::UNION, and moab::Core::write_file().
Referenced by main().
void test_read_opaque_tag | ( | ) |
Test reading of sparse opaque tag data.
Definition at line 666 of file h5partial.cpp.
References moab::Range::begin(), CHECK, CHECK_ERR, CHECK_REAL_EQUAL, check_tag(), create_mesh(), moab::Range::empty(), moab::Range::end(), ErrorCode, moab::Core::get_coords(), moab::Core::get_entities_by_type(), ID_TAG_NAME, moab::Core::load_file(), LOGICAL_NAME, mb, MB_TAG_DENSE, MB_TYPE_OPAQUE, MBVERTEX, READ_OPTS, moab::Core::tag_get_data(), and TEST_FILE.
Referenced by main().
void test_read_partial_ids | ( | ) |
Definition at line 1462 of file h5partial.cpp.
References CHECK_ERR, ErrorCode, expected_ids, GEOM_DIMENSION_TAG_NAME, GLOBAL_ID_TAG_NAME, moab::ReadHDF5::read_tag_values(), TEST_FILE, and write_id_test_file().
Referenced by main().
void test_read_set_sets | ( | ) |
Read in the sets contained in a set. Should read all sets containing read elements or nodes and all sets that are contained the the specified "read" set. Test the later here.
Definition at line 881 of file h5partial.cpp.
References moab::Core::add_entities(), CHECK, CHECK_EQUAL, CHECK_ERR, moab::Range::clear(), moab::Core::create_meshset(), moab::Core::delete_mesh(), moab::Range::end(), moab::Range::erase(), ErrorCode, moab::Range::find(), moab::Range::front(), moab::Core::get_entities_by_type(), moab::Core::get_entities_by_type_and_tag(), id_tag, ID_TAG_NAME, moab::Core::load_file(), mb, MB_TAG_EXCL, MB_TAG_SPARSE, MB_TYPE_INTEGER, MBENTITYSET, MESHSET_SET, READ_OPTS, moab::Range::size(), moab::Core::tag_get_data(), moab::Core::tag_get_handle(), moab::Core::tag_set_data(), TEST_FILE, and moab::Core::write_file().
Referenced by main().
void test_read_sides | ( | ) |
Definition at line 1325 of file h5partial.cpp.
References moab::Core::add_entities(), moab::Range::begin(), CHECK_EQUAL, CHECK_ERR, moab::Range::clear(), moab::Core::create_element(), moab::Core::create_meshset(), moab::Core::create_vertex(), moab::Core::delete_mesh(), moab::Range::end(), ErrorCode, moab::Core::get_adjacencies(), moab::Core::get_entities_by_type(), moab::Core::get_number_entities_by_type(), id_tag, ID_TAG_NAME, INT, moab::Core::load_file(), mb, MB_TAG_EXCL, MB_TAG_SPARSE, MB_TYPE_INTEGER, MBEDGE, MBQUAD, MBVERTEX, MESHSET_SET, READ_OPTS, moab::Range::size(), moab::Core::tag_get_handle(), moab::Core::tag_set_data(), TEST_FILE, moab::Interface::UNION, and moab::Core::write_file().
Referenced by main().
void test_read_tagged_elems | ( | ) |
Definition at line 738 of file h5partial.cpp.
References CHECK_EQUAL, CHECK_ERR, create_mesh(), ErrorCode, moab::Core::get_entities_by_type(), moab::Core::get_number_entities_by_type(), ID_TAG_NAME, identify_set(), moab::Core::load_file(), mb, MBQUAD, MBQUAD_INT, MBVERTEX, NUM_SETS, READ_OPTS, and TEST_FILE.
Referenced by main().
void test_read_tagged_nodes | ( | ) |
Definition at line 758 of file h5partial.cpp.
References CHECK_EQUAL, CHECK_ERR, create_mesh(), ErrorCode, moab::Core::get_entities_by_type(), moab::Core::get_number_entities_by_type(), ID_TAG_NAME, identify_set(), moab::Core::load_file(), mb, MBQUAD, MBQUAD_INT, MBVERTEX, NUM_SETS, READ_OPTS, and TEST_FILE.
Referenced by main().
void test_read_two_sets_elems | ( | ) |
Read in the elems contained in a sets.
Definition at line 578 of file h5partial.cpp.
References moab::Range::back(), CHECK, CHECK_EQUAL, CHECK_ERR, create_mesh(), moab::Core::create_meshset(), moab::Range::end(), moab::Range::erase(), ErrorCode, moab::Range::find(), moab::Range::front(), moab::Core::get_entities_by_type(), ID_TAG_NAME, identify_set(), moab::Core::load_file(), mb, MBENTITYSET, MESHSET_SET, READ_OPTS, moab::Range::size(), and TEST_FILE.
Referenced by main().
void test_read_two_sets_nodes | ( | ) |
Read in the nodes contained in a sets.
Definition at line 97 of file h5partial.cpp.
References test_read_nodes_common().
Referenced by main().
void test_var_len_tag | ( | ) |
Test reading of variable-length tag data.
Definition at line 165 of file h5partial.cpp.
References test_read_handle_tag_common().
Referenced by main().
|
static |
void write_id_test_file | ( | ) |
Definition at line 1401 of file h5partial.cpp.
References CHECK_ERR, moab::Core::create_meshset(), dim, ErrorCode, expected_ids, expected_vols, GEOM_DIMENSION_TAG_NAME, moab::Core::globalId_tag(), ID_TAG_NAME, mb, MB_TAG_EXCL, MB_TAG_SPARSE, MB_TYPE_INTEGER, MESHSET_SET, moab::Core::tag_get_handle(), moab::Core::tag_set_data(), TEST_FILE, and moab::Core::write_file().
Referenced by test_read_ids(), and test_read_partial_ids().
const char CENTROID_NAME[] = "centroid" |
Definition at line 32 of file h5partial.cpp.
Referenced by create_mesh(), and test_read_double_tag().
const int expected_ids[] = { 2, 4, 6, 8, 10, 12, 14, 16, 18 } |
Definition at line 1398 of file h5partial.cpp.
Referenced by test_read_ids(), test_read_partial_ids(), and write_id_test_file().
const int expected_vols[] = { 3, 7, 10 } |
Definition at line 1399 of file h5partial.cpp.
Referenced by write_id_test_file().
const char ID_TAG_NAME[] = "test_id_tag" |
Definition at line 22 of file h5partial.cpp.
Referenced by create_mesh(), test_gather_sets_common(), test_gather_sets_ranged(), test_read_adjacencies(), test_read_containing_sets(), test_read_double_tag(), test_read_handle_tag_common(), test_read_ids(), test_read_nodes_common(), test_read_nothing_common(), test_read_one_set_elems(), test_read_one_set_polyhedra(), test_read_opaque_tag(), test_read_set_sets(), test_read_sides(), test_read_tagged_elems(), test_read_tagged_nodes(), test_read_two_sets_elems(), and write_id_test_file().
const char LOGICAL_NAME[] = "logical" |
Definition at line 31 of file h5partial.cpp.
Referenced by create_mesh(), and test_read_opaque_tag().
const int MBQUAD_INT = 20 |
Definition at line 28 of file h5partial.cpp.
Referenced by create_mesh(), identify_set(), test_read_containing_sets(), test_read_tagged_elems(), and test_read_tagged_nodes().
const int NUM_SETS = 10 |
Definition at line 29 of file h5partial.cpp.
Referenced by create_mesh(), test_read_containing_sets(), test_read_one_set_elems(), test_read_tagged_elems(), and test_read_tagged_nodes().
const char* set_read_opts[] = { "SETS", "CONTENTS", "NONE" } |
Definition at line 1023 of file h5partial.cpp.
Referenced by test_gather_sets_common(), and test_gather_sets_ranged().
const int SET_WIDTH = ( MBQUAD_INT + NUM_SETS - 1 ) / NUM_SETS |
Definition at line 30 of file h5partial.cpp.
Referenced by create_mesh(), identify_set(), and test_read_containing_sets().
const char TEST_FILE[] = "partial.h5m" |
Definition at line 20 of file h5partial.cpp.
Referenced by create_mesh(), test_gather_sets_common(), test_gather_sets_ranged(), test_read_adjacencies(), test_read_containing_sets(), test_read_double_tag(), test_read_handle_tag_common(), test_read_ids(), test_read_nodes_common(), test_read_nothing_common(), test_read_one_set_elems(), test_read_one_set_polyhedra(), test_read_opaque_tag(), test_read_partial_ids(), test_read_set_sets(), test_read_sides(), test_read_tagged_elems(), test_read_tagged_nodes(), test_read_two_sets_elems(), and write_id_test_file().