MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "TestUtil.hpp"
#include "moab/Core.hpp"
#include "moab/ReadUtilIface.hpp"
#include "TagInfo.hpp"
#include "MBTagConventions.hpp"
Go to the source code of this file.
Functions | |
void | test_read_all () |
void | test_read_onevar () |
void | test_read_onetimestep () |
void | test_read_nomesh () |
void | test_read_novars () |
void | test_read_coord_vars () |
void | test_gather_onevar () |
void | test_read_conn () |
void | get_options (std::string &opts) |
int | main (int argc, char *argv[]) |
Variables | |
std::string | example = TestDir + "unittest/io/homme3x3458.t.3.nc" |
std::string | conn_fname = TestDir + "unittest/io/HommeMapping.nc" |
const int | levels = 3 |
void get_options | ( | std::string & | opts | ) |
Definition at line 395 of file read_ucd_nc.cpp.
Referenced by test_gather_onevar(), test_read_all(), test_read_conn(), test_read_coord_vars(), test_read_nomesh(), test_read_novars(), test_read_onetimestep(), and test_read_onevar().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 30 of file read_ucd_nc.cpp.
References moab::fail(), RUN_TEST, test_gather_onevar(), test_read_all(), test_read_conn(), test_read_coord_vars(), test_read_nomesh(), test_read_novars(), test_read_onetimestep(), and test_read_onevar().
void test_gather_onevar | ( | ) |
Definition at line 294 of file read_ucd_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, moab::Core::create_meshset(), eps, ErrorCode, example, moab::ParallelComm::filter_pstatus(), moab::ParallelComm::gather_data(), moab::Core::get_entities_by_type(), moab::ReadUtilIface::get_gather_set(), get_options(), moab::ParallelComm::get_pcomm(), moab::Core::globalId_tag(), levels, moab::Core::load_file(), mb, MB_TAG_DENSE, MB_TYPE_DOUBLE, MBVERTEX, MESHSET_SET, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_rank(), PSTATUS_NOT, PSTATUS_NOT_OWNED, moab::Interface::query_interface(), rank, moab::Range::size(), moab::Core::tag_get_data(), and moab::Core::tag_get_handle().
Referenced by main().
void test_read_all | ( | ) |
Definition at line 58 of file read_ucd_nc.cpp.
References CHECK_ERR, ErrorCode, example, get_options(), levels, moab::Core::load_file(), mb, MB_TYPE_DOUBLE, and moab::Core::tag_get_handle().
Referenced by main().
void test_read_conn | ( | ) |
Definition at line 363 of file read_ucd_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, conn_fname, ErrorCode, moab::Core::get_entities_by_type(), get_options(), moab::ParallelComm::get_pcomm(), moab::Core::load_file(), mb, MBQUAD, MBVERTEX, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_size(), and moab::Range::size().
Referenced by main().
void test_read_coord_vars | ( | ) |
Definition at line 212 of file read_ucd_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, moab::Core::create_meshset(), eps, ErrorCode, example, moab::TagInfo::get_data_type(), get_options(), levels, moab::Core::load_file(), mb, MB_TAG_SPARSE, MB_TAG_VARLEN, MB_TYPE_DOUBLE, MB_TYPE_INTEGER, MB_TYPE_OPAQUE, MESHSET_SET, moab::Core::tag_get_by_ptr(), moab::Core::tag_get_handle(), and moab::TagInfo::variable_length().
Referenced by main().
void test_read_nomesh | ( | ) |
Definition at line 143 of file read_ucd_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example, get_options(), levels, moab::Core::load_file(), mb, MB_TAG_NOT_FOUND, MB_TYPE_DOUBLE, MESHSET_SET, and moab::Core::tag_get_handle().
Referenced by main().
void test_read_novars | ( | ) |
Definition at line 173 of file read_ucd_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example, get_options(), levels, moab::Core::load_file(), mb, MB_TAG_NOT_FOUND, MB_TYPE_DOUBLE, MESHSET_SET, and moab::Core::tag_get_handle().
Referenced by main().
void test_read_onetimestep | ( | ) |
Definition at line 124 of file read_ucd_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, ErrorCode, example, get_options(), levels, moab::Core::load_file(), mb, MB_TAG_NOT_FOUND, MB_TYPE_DOUBLE, and moab::Core::tag_get_handle().
Referenced by main().
void test_read_onevar | ( | ) |
Definition at line 75 of file read_ucd_nc.cpp.
References moab::Range::begin(), CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, moab::Range::end(), eps, ErrorCode, example, moab::Core::get_entities_by_type(), get_options(), moab::ParallelComm::get_pcomm(), levels, moab::Core::load_file(), mb, MB_TYPE_DOUBLE, MBVERTEX, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_size(), moab::Range::size(), moab::Core::tag_get_handle(), and moab::Core::tag_iterate().
Referenced by main().
std::string conn_fname = TestDir + "unittest/io/HommeMapping.nc" |
Definition at line 10 of file read_ucd_nc.cpp.
Referenced by moab::NCHelperHOMME::create_mesh(), and test_read_conn().
std::string example = TestDir + "unittest/io/homme3x3458.t.3.nc" |
Definition at line 9 of file read_ucd_nc.cpp.
Referenced by test_gather_onevar(), test_read_all(), test_read_coord_vars(), test_read_nomesh(), test_read_novars(), test_read_onetimestep(), and test_read_onevar().
const int levels = 3 |
Definition at line 28 of file read_ucd_nc.cpp.
Referenced by test_gather_onevar(), test_read_all(), test_read_coord_vars(), test_read_nomesh(), test_read_novars(), test_read_onetimestep(), and test_read_onevar().