MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "TestUtil.hpp"
#include "moab/Core.hpp"
#include "moab/ReadUtilIface.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_no_mixed_elements () |
void | test_read_no_edges () |
void | test_gather_onevar () |
void | get_options (std::string &opts) |
int | main (int argc, char *argv[]) |
Variables | |
std::string | example = TestDir + "unittest/io/mpasx1.642.t.2.nc" |
const double | eps = 1e-20 |
void get_options | ( | std::string & | opts | ) |
Definition at line 464 of file read_mpas_nc.cpp.
Referenced by test_gather_onevar(), test_read_all(), test_read_no_edges(), test_read_no_mixed_elements(), test_read_nomesh(), test_read_novars(), test_read_onetimestep(), and test_read_onevar().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 28 of file read_mpas_nc.cpp.
References moab::fail(), RUN_TEST, test_gather_onevar(), test_read_all(), test_read_no_edges(), test_read_no_mixed_elements(), test_read_nomesh(), test_read_novars(), test_read_onetimestep(), and test_read_onevar().
void test_gather_onevar | ( | ) |
Definition at line 400 of file read_mpas_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(), moab::Core::load_file(), mb, MB_TAG_DENSE, MB_TYPE_DOUBLE, MBPOLYGON, MESHSET_SET, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_rank(), moab::Range::psize(), 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 56 of file read_mpas_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, eps, ErrorCode, example, moab::Core::get_entities_by_type(), get_options(), moab::ParallelComm::get_pcomm(), moab::Core::load_file(), mb, MB_TYPE_DOUBLE, MBEDGE, MBPOLYGON, MBVERTEX, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_size(), moab::Range::psize(), moab::Range::size(), moab::Core::tag_get_data(), and moab::Core::tag_get_handle().
Referenced by main().
void test_read_no_edges | ( | ) |
Definition at line 383 of file read_mpas_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, ErrorCode, example, moab::Core::get_entities_by_type(), get_options(), moab::Core::load_file(), mb, MBEDGE, and moab::Range::size().
Referenced by main().
void test_read_no_mixed_elements | ( | ) |
Definition at line 330 of file read_mpas_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, eps, ErrorCode, example, moab::Core::get_entities_by_type(), get_options(), moab::ParallelComm::get_pcomm(), moab::Core::load_file(), mb, MB_TYPE_DOUBLE, MBPOLYGON, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_size(), moab::Range::psize(), moab::Range::size(), moab::Core::tag_get_data(), and moab::Core::tag_get_handle().
Referenced by main().
void test_read_nomesh | ( | ) |
Definition at line 213 of file read_mpas_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example, get_options(), 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 246 of file read_mpas_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, moab::Core::create_meshset(), eps, ErrorCode, example, moab::Core::get_entities_by_type(), get_options(), moab::ParallelComm::get_pcomm(), moab::Core::load_file(), mb, MB_TAG_NOT_FOUND, MB_TYPE_DOUBLE, MBPOLYGON, MESHSET_SET, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_size(), moab::Range::psize(), moab::Range::size(), moab::Core::tag_get_data(), and moab::Core::tag_get_handle().
Referenced by main().
void test_read_onetimestep | ( | ) |
Definition at line 193 of file read_mpas_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, ErrorCode, example, get_options(), 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 142 of file read_mpas_nc.cpp.
References CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, eps, ErrorCode, example, moab::Core::get_entities_by_type(), get_options(), moab::ParallelComm::get_pcomm(), moab::Core::load_file(), mb, MB_TYPE_DOUBLE, MBPOLYGON, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_size(), moab::Range::psize(), moab::Range::size(), moab::Core::tag_get_data(), and moab::Core::tag_get_handle().
Referenced by main().
const double eps = 1e-20 |
Definition at line 26 of file read_mpas_nc.cpp.
Referenced by test_gather_onevar(), test_read_all(), test_read_no_mixed_elements(), test_read_novars(), and test_read_onevar().
std::string example = TestDir + "unittest/io/mpasx1.642.t.2.nc" |
Definition at line 8 of file read_mpas_nc.cpp.
Referenced by test_gather_onevar(), test_read_all(), test_read_no_edges(), test_read_no_mixed_elements(), test_read_nomesh(), test_read_novars(), test_read_onetimestep(), and test_read_onevar().