MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "moab/Core.hpp"
#include "TestUtil.hpp"
#include "moab/Range.hpp"
#include <cstdlib>
#include <cstdio>
Go to the source code of this file.
Macros | |
#define | CHECK_ERR_FILE(ERRCODE, FILENAME) |
Functions | |
void | test_var_length_no_data () |
void | test_var_length_data () |
void | test_var_length_data_big () |
void | test_var_length_big_data () |
void | test_var_length_opaque () |
void | test_var_length_mesh_data () |
void | test_var_length_default_data () |
void | test_var_length_mesh_opaque () |
void | test_var_length_default_opaque () |
void | test_var_length_handle_tag () |
void | test_huge_var_length () |
void | create_mesh (Interface &mb) |
void | create_big_mesh (Interface &mb) |
void | compare_tags (const char *name, Interface &mb1, Interface &mb2) |
void | read_write (const char *filename, Interface &write, Interface &reader) |
int | main (int argc, char *argv[]) |
void | test_var_length_data_common (const char *filename, Interface &mb1, bool opaque=false) |
void | calculate_big_value (Interface &moab, EntityHandle vert, size_t size, double *data) |
void | test_global_value_common (bool mesh_value) |
void | test_global_opaque_common (bool mesh_value) |
void | create_structured_quad_mesh (Interface &mb, int x, int y) |
Variables | |
static bool | keep_files = false |
#define CHECK_ERR_FILE | ( | ERRCODE, | |
FILENAME | |||
) |
Definition at line 46 of file h5varlen.cpp.
void calculate_big_value | ( | Interface & | moab, |
EntityHandle | vert, | ||
size_t | size, | ||
double * | data | ||
) |
Definition at line 195 of file h5varlen.cpp.
References CHECK, CHECK_ERR, ErrorCode, and size.
Referenced by test_var_length_big_data().
Definition at line 625 of file h5varlen.cpp.
References CHECK, CHECK_EQUAL, CHECK_ERR, ErrorCode, MB_ENTITY_NOT_FOUND, MB_SUCCESS, MB_TAG_ANY, MB_TAG_NOT_FOUND, MB_TYPE_OPAQUE, MB_VARIABLE_DATA_LENGTH, size, moab::Interface::tag_get_data_type(), moab::Interface::tag_get_default_value(), moab::Interface::tag_get_handle(), moab::Interface::tag_get_length(), moab::Interface::tag_get_type(), and TagType.
Referenced by test_global_opaque_common(), test_global_value_common(), test_huge_var_length(), test_var_length_big_data(), test_var_length_data_common(), test_var_length_handle_tag(), and test_var_length_no_data().
void create_big_mesh | ( | Interface & | mb | ) |
Definition at line 620 of file h5varlen.cpp.
References create_structured_quad_mesh(), and mb.
Referenced by test_var_length_data_big().
void create_mesh | ( | Interface & | mb | ) |
Definition at line 615 of file h5varlen.cpp.
References create_structured_quad_mesh(), and mb.
Referenced by test_global_opaque_common(), test_global_value_common(), test_huge_var_length(), test_var_length_big_data(), test_var_length_data(), test_var_length_handle_tag(), test_var_length_no_data(), and test_var_length_opaque().
void create_structured_quad_mesh | ( | Interface & | mb, |
int | x, | ||
int | y | ||
) |
Definition at line 588 of file h5varlen.cpp.
References CHECK_ERR, moab::Core::create_element(), moab::Core::create_vertex(), ErrorCode, mb, and MBQUAD.
Referenced by create_big_mesh(), and create_mesh().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 53 of file h5varlen.cpp.
References moab::fail(), keep_files, RUN_TEST, test_huge_var_length(), test_var_length_big_data(), test_var_length_data(), test_var_length_data_big(), test_var_length_default_data(), test_var_length_default_opaque(), test_var_length_handle_tag(), test_var_length_mesh_data(), test_var_length_mesh_opaque(), test_var_length_no_data(), and test_var_length_opaque().
Definition at line 662 of file h5varlen.cpp.
References CHECK_ERR, ErrorCode, filename, keep_files, moab::Interface::load_mesh(), MB_SUCCESS, and moab::Interface::write_file().
Referenced by test_global_opaque_common(), test_global_value_common(), test_var_length_big_data(), test_var_length_data_common(), test_var_length_handle_tag(), and test_var_length_no_data().
void test_global_opaque_common | ( | bool | mesh_value | ) |
Definition at line 387 of file h5varlen.cpp.
References CHECK, CHECK_EQUAL, CHECK_ERR, compare_tags(), create_mesh(), ErrorCode, mb, MB_TAG_DENSE, MB_TAG_EXCL, MB_TAG_VARLEN, MB_TYPE_OPAQUE, read_write(), moab::Interface::tag_get_by_ptr(), moab::Interface::tag_get_default_value(), moab::Core::tag_get_handle(), moab::Interface::tag_get_handle(), and moab::Core::tag_set_by_ptr().
Referenced by test_var_length_default_opaque(), and test_var_length_mesh_opaque().
void test_global_value_common | ( | bool | mesh_value | ) |
Definition at line 271 of file h5varlen.cpp.
References moab::Range::begin(), CHECK, CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, compare_tags(), coord_tag, create_mesh(), ErrorCode, moab::Core::get_coords(), moab::Interface::get_coords(), moab::Core::get_entities_by_type(), mb, MB_TAG_DENSE, MB_TAG_EXCL, MB_TAG_SPARSE, MB_TAG_VARLEN, MB_TYPE_DOUBLE, MB_TYPE_HANDLE, MBVERTEX, read_write(), size, moab::Range::size(), moab::Interface::tag_get_by_ptr(), moab::Interface::tag_get_default_value(), moab::Core::tag_get_handle(), moab::Interface::tag_get_handle(), moab::Core::tag_set_by_ptr(), and moab::Interface::type_from_handle().
Referenced by test_var_length_default_data(), and test_var_length_mesh_data().
void test_huge_var_length | ( | ) |
Definition at line 537 of file h5varlen.cpp.
References CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, compare_tags(), create_mesh(), ErrorCode, moab::Interface::get_entities_by_handle(), keep_files, MB_TAG_EXCL, MB_TAG_SPARSE, MB_TAG_VARLEN, MB_TYPE_DOUBLE, moab::Interface::tag_get_handle(), moab::Interface::tag_set_by_ptr(), and moab::Interface::write_file().
Referenced by main().
void test_var_length_big_data | ( | ) |
Definition at line 207 of file h5varlen.cpp.
References moab::Range::begin(), calculate_big_value(), CHECK_EQUAL, CHECK_ERR, moab::Range::clear(), compare_tags(), create_mesh(), moab::Range::end(), ErrorCode, moab::Range::front(), moab::Interface::get_entities_by_type(), MB_TAG_EXCL, MB_TAG_SPARSE, MB_TAG_VARLEN, MB_TYPE_DOUBLE, MBVERTEX, read_write(), size, moab::Range::size(), moab::Interface::tag_get_handle(), moab::Interface::tag_set_by_ptr(), and moab::Interface::UNION.
Referenced by main().
void test_var_length_data | ( | ) |
Definition at line 181 of file h5varlen.cpp.
References create_mesh(), and test_var_length_data_common().
Referenced by main().
void test_var_length_data_big | ( | ) |
Definition at line 188 of file h5varlen.cpp.
References create_big_mesh(), and test_var_length_data_common().
Referenced by main().
void test_var_length_data_common | ( | const char * | filename, |
Interface & | mb1, | ||
bool | opaque = false |
||
) |
Definition at line 106 of file h5varlen.cpp.
References CHECK, CHECK_EQUAL, CHECK_ERR, compare_tags(), entities, ErrorCode, filename, moab::Interface::get_entities_by_handle(), moab::Interface::get_entities_by_type(), MB_TAG_EXCL, MB_TAG_SPARSE, MB_TAG_VARLEN, MB_TYPE_INTEGER, MB_TYPE_OPAQUE, MBENTITYSET, read_write(), size, moab::subtract(), moab::Interface::tag_get_by_ptr(), moab::Interface::tag_get_handle(), moab::Interface::tag_set_by_ptr(), and moab::Interface::type_from_handle().
Referenced by test_var_length_data(), test_var_length_data_big(), and test_var_length_opaque().
void test_var_length_default_data | ( | ) |
Definition at line 382 of file h5varlen.cpp.
References test_global_value_common().
Referenced by main().
void test_var_length_default_opaque | ( | ) |
Definition at line 451 of file h5varlen.cpp.
References test_global_opaque_common().
Referenced by main().
void test_var_length_handle_tag | ( | ) |
Definition at line 456 of file h5varlen.cpp.
References moab::Range::begin(), CHECK_EQUAL, CHECK_ERR, moab::Range::clear(), compare_tags(), create_mesh(), moab::Range::end(), ErrorCode, moab::Interface::get_connectivity(), moab::Interface::get_entities_by_handle(), MB_TAG_EXCL, MB_TAG_SPARSE, MB_TAG_VARLEN, MB_TYPE_HANDLE, MBENTITYSET, MBVERTEX, read_write(), size, moab::Range::size(), t, moab::Interface::tag_get_handle(), moab::Interface::tag_set_by_ptr(), moab::Interface::type_from_handle(), and moab::Interface::UNION.
Referenced by main().
void test_var_length_mesh_data | ( | ) |
Definition at line 377 of file h5varlen.cpp.
References test_global_value_common().
Referenced by main().
void test_var_length_mesh_opaque | ( | ) |
Definition at line 446 of file h5varlen.cpp.
References test_global_opaque_common().
Referenced by main().
void test_var_length_no_data | ( | ) |
Definition at line 92 of file h5varlen.cpp.
References CHECK_ERR, compare_tags(), create_mesh(), ErrorCode, MB_TAG_DENSE, MB_TAG_EXCL, MB_TAG_VARLEN, MB_TYPE_DOUBLE, read_write(), and moab::Interface::tag_get_handle().
Referenced by main().
void test_var_length_opaque | ( | ) |
Definition at line 264 of file h5varlen.cpp.
References create_mesh(), and test_var_length_data_common().
Referenced by main().
|
static |
Definition at line 14 of file h5varlen.cpp.
Referenced by main(), read_write(), and test_huge_var_length().