MOAB: Mesh Oriented datABase
(version 5.5.0)
|
Go to the source code of this file.
Functions | |
void | test_read_eul_all () |
void | test_read_eul_onevar () |
void | test_read_eul_onetimestep () |
void | test_read_eul_nomesh () |
void | test_read_eul_novars () |
void | test_read_fv_all () |
void | test_read_fv_onevar () |
void | test_read_fv_onetimestep () |
void | test_read_fv_nomesh () |
void | test_read_fv_novars () |
void | test_read_domain () |
void | test_read_scrip () |
ErrorCode | get_options (std::string &opts) |
int | main (int argc, char *argv[]) |
Variables | |
std::string | example_eul = TestDir + "unittest/io/eul3x48x96.t.3.nc" |
std::string | example_fv = TestDir + "unittest/io/fv3x46x72.t.3.nc" |
std::string | example_domain = TestDir + "unittest/io/domain.ocn.ne4np4_oQU240.160614.nc" |
std::string | example_scrip = TestDir + "unittest/io/ocean.QU.240km.scrip.151209.nc" |
const int | levels = 3 |
ErrorCode get_options | ( | std::string & | opts | ) |
Definition at line 533 of file read_nc.cpp.
References MB_SUCCESS.
Referenced by test_read_domain(), test_read_eul_all(), test_read_eul_nomesh(), test_read_eul_novars(), test_read_eul_onetimestep(), test_read_eul_onevar(), test_read_fv_all(), test_read_fv_nomesh(), test_read_fv_novars(), test_read_fv_onetimestep(), test_read_fv_onevar(), and test_read_scrip().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 42 of file read_nc.cpp.
References moab::fail(), RUN_TEST, test_read_domain(), test_read_eul_all(), test_read_eul_nomesh(), test_read_eul_novars(), test_read_eul_onetimestep(), test_read_eul_onevar(), test_read_fv_nomesh(), test_read_fv_novars(), test_read_fv_onetimestep(), test_read_fv_onevar(), and test_read_scrip().
void test_read_domain | ( | ) |
Definition at line 501 of file read_nc.cpp.
References CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_domain, get_options(), moab::Core::load_file(), mb, and MESHSET_SET.
Referenced by main().
void test_read_eul_all | ( | ) |
Definition at line 80 of file read_nc.cpp.
References CHECK_ERR, ErrorCode, example_eul, get_options(), levels, moab::Core::load_file(), mb, MB_TAG_VARLEN, MB_TYPE_DOUBLE, MB_TYPE_INTEGER, and moab::Core::tag_get_handle().
Referenced by main().
void test_read_eul_nomesh | ( | ) |
Definition at line 208 of file read_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_eul, 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_eul_novars | ( | ) |
Definition at line 238 of file read_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_eul, 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_eul_onetimestep | ( | ) |
Definition at line 190 of file read_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, ErrorCode, example_eul, 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_eul_onevar | ( | ) |
Definition at line 107 of file read_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, eps, ErrorCode, example_eul, moab::Core::get_entities_by_type(), get_options(), moab::ParallelComm::get_pcomm(), levels, moab::Core::load_file(), mb, MB_TYPE_DOUBLE, MBQUAD, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_rank(), moab::ProcConfig::proc_size(), rank, moab::Range::size(), moab::Core::tag_get_data(), and moab::Core::tag_get_handle().
Referenced by main().
void test_read_fv_all | ( | ) |
Definition at line 277 of file read_nc.cpp.
References CHECK_ERR, ErrorCode, example_fv, get_options(), levels, moab::Core::load_file(), mb, MB_TYPE_DOUBLE, and moab::Core::tag_get_handle().
void test_read_fv_nomesh | ( | ) |
Definition at line 405 of file read_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_fv, 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_fv_novars | ( | ) |
Definition at line 435 of file read_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_fv, 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_fv_onetimestep | ( | ) |
Definition at line 379 of file read_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, ErrorCode, example_fv, get_options(), levels, moab::Core::load_file(), mb, MB_TAG_NOT_FOUND, MB_TAG_VARLEN, MB_TYPE_DOUBLE, MB_TYPE_INTEGER, and moab::Core::tag_get_handle().
Referenced by main().
void test_read_fv_onevar | ( | ) |
Definition at line 296 of file read_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, eps, ErrorCode, example_fv, moab::Core::get_entities_by_type(), get_options(), moab::ParallelComm::get_pcomm(), levels, moab::Core::load_file(), mb, MB_TYPE_DOUBLE, MBQUAD, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_rank(), moab::ProcConfig::proc_size(), rank, moab::Range::size(), moab::Core::tag_get_data(), and moab::Core::tag_get_handle().
Referenced by main().
void test_read_scrip | ( | ) |
Definition at line 517 of file read_nc.cpp.
References CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_scrip, get_options(), moab::Core::load_file(), mb, and MESHSET_SET.
Referenced by main().
std::string example_domain = TestDir + "unittest/io/domain.ocn.ne4np4_oQU240.160614.nc" |
Definition at line 8 of file read_nc.cpp.
Referenced by test_read_domain().
std::string example_eul = TestDir + "unittest/io/eul3x48x96.t.3.nc" |
Definition at line 6 of file read_nc.cpp.
Referenced by test_read_eul_all(), test_read_eul_nomesh(), test_read_eul_novars(), test_read_eul_onetimestep(), and test_read_eul_onevar().
std::string example_fv = TestDir + "unittest/io/fv3x46x72.t.3.nc" |
Definition at line 7 of file read_nc.cpp.
Referenced by test_read_fv_all(), test_read_fv_nomesh(), test_read_fv_novars(), test_read_fv_onetimestep(), and test_read_fv_onevar().
std::string example_scrip = TestDir + "unittest/io/ocean.QU.240km.scrip.151209.nc" |
Definition at line 9 of file read_nc.cpp.
Referenced by test_read_scrip().
const int levels = 3 |
Definition at line 40 of file read_nc.cpp.
Referenced by main(), test_read_eul_all(), test_read_eul_nomesh(), test_read_eul_novars(), test_read_eul_onetimestep(), test_read_eul_onevar(), test_read_fv_all(), test_read_fv_nomesh(), test_read_fv_novars(), test_read_fv_onetimestep(), and test_read_fv_onevar().