MOAB: Mesh Oriented datABase
(version 5.5.0)
|
Go to the source code of this file.
Macros | |
#define | NCFUNC(func) nc_##func |
#define | NCDF_SIZE size_t |
Functions | |
void | test_eul_read_write_T () |
void | test_eul_check_T () |
void | test_fv_read_write_T () |
void | test_fv_check_T () |
void | test_homme_read_write_T () |
void | test_homme_check_T () |
void | test_mpas_read_write_vars () |
void | test_mpas_check_vars () |
void | test_gcrm_read_write_vars () |
void | test_gcrm_check_vars () |
void | test_eul_read_write_timestep () |
void | test_eul_check_timestep () |
void | test_eul_read_write_append () |
void | test_eul_check_append () |
void | test_eul_read_write_across_files () |
void | test_eul_check_across_files () |
void | get_eul_read_options (std::string &opts) |
void | get_fv_read_options (std::string &opts) |
void | get_homme_read_options (std::string &opts) |
void | get_mpas_read_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_eul_t0 = TestDir + "unittest/io/eul3x48x96.t0.nc" |
std::string | example_eul_t1 = TestDir + "unittest/io/eul3x48x96.t1.nc" |
std::string | example_eul_t2 = TestDir + "unittest/io/eul3x48x96.t2.nc" |
std::string | example_fv = TestDir + "unittest/io/fv3x46x72.t.3.nc" |
std::string | example_homme = TestDir + "unittest/io/homme3x3458.t.3.nc" |
std::string | example_mpas = TestDir + "unittest/io/mpasx1.642.t.2.nc" |
std::string | example_gcrm = TestDir + "unittest/io/gcrm_r3.nc" |
const double | eps = 1e-10 |
const int | levels = 3 |
const int | mpas_levels = 1 |
#define NCDF_SIZE size_t |
Definition at line 27 of file write_nc.cpp.
#define NCFUNC | ( | func | ) | nc_##func |
Definition at line 26 of file write_nc.cpp.
void get_eul_read_options | ( | std::string & | opts | ) |
Definition at line 1602 of file write_nc.cpp.
Referenced by test_eul_read_write_across_files(), test_eul_read_write_append(), test_eul_read_write_T(), and test_eul_read_write_timestep().
void get_fv_read_options | ( | std::string & | opts | ) |
void get_homme_read_options | ( | std::string & | opts | ) |
void get_mpas_read_options | ( | std::string & | opts | ) |
Definition at line 1632 of file write_nc.cpp.
Referenced by test_gcrm_read_write_vars(), and test_mpas_read_write_vars().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 77 of file write_nc.cpp.
References moab::fail(), RUN_TEST, test_eul_check_across_files(), test_eul_check_append(), test_eul_check_T(), test_eul_check_timestep(), test_eul_read_write_across_files(), test_eul_read_write_append(), test_eul_read_write_T(), test_eul_read_write_timestep(), test_fv_check_T(), test_fv_read_write_T(), test_gcrm_check_vars(), test_gcrm_read_write_vars(), test_homme_check_T(), test_homme_read_write_T(), test_mpas_check_vars(), and test_mpas_read_write_vars().
void test_eul_check_across_files | ( | ) |
Definition at line 1372 of file write_nc.cpp.
References CHECK_EQUAL, CHECK_REAL_EQUAL, eps, example_eul, filename, levels, MPI_COMM_WORLD, NCDF_SIZE, NCFUNC, rank, and size.
Referenced by main().
void test_eul_check_append | ( | ) |
Definition at line 1184 of file write_nc.cpp.
References CHECK_EQUAL, CHECK_REAL_EQUAL, eps, example_eul, filename, levels, MPI_COMM_WORLD, NCDF_SIZE, NCFUNC, rank, and size.
Referenced by main().
void test_eul_check_T | ( | ) |
Definition at line 165 of file write_nc.cpp.
References CHECK_EQUAL, CHECK_REAL_EQUAL, eps, example_eul, filename, levels, MPI_COMM_WORLD, NCDF_SIZE, NCFUNC, rank, and size.
Referenced by main().
void test_eul_check_timestep | ( | ) |
Definition at line 1024 of file write_nc.cpp.
References CHECK_EQUAL, CHECK_REAL_EQUAL, eps, example_eul, filename, levels, MPI_COMM_WORLD, NCDF_SIZE, NCFUNC, rank, and size.
Referenced by main().
void test_eul_read_write_across_files | ( | ) |
Definition at line 1322 of file write_nc.cpp.
References CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_eul_t0, example_eul_t1, example_eul_t2, get_eul_read_options(), moab::Core::load_file(), mb, MESHSET_SET, MPI_COMM_WORLD, and moab::Core::write_file().
Referenced by main().
void test_eul_read_write_append | ( | ) |
Definition at line 1125 of file write_nc.cpp.
References CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_eul, get_eul_read_options(), moab::Core::load_file(), mb, MESHSET_SET, MPI_COMM_WORLD, and moab::Core::write_file().
Referenced by main().
void test_eul_read_write_T | ( | ) |
Definition at line 126 of file write_nc.cpp.
References CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_eul, get_eul_read_options(), moab::Core::load_file(), mb, MESHSET_SET, MPI_COMM_WORLD, and moab::Core::write_file().
Referenced by main().
void test_eul_read_write_timestep | ( | ) |
Definition at line 987 of file write_nc.cpp.
References CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_eul, get_eul_read_options(), moab::Core::load_file(), mb, MESHSET_SET, MPI_COMM_WORLD, and moab::Core::write_file().
Referenced by main().
void test_fv_check_T | ( | ) |
Definition at line 324 of file write_nc.cpp.
References CHECK_EQUAL, CHECK_REAL_EQUAL, eps, example_fv, filename, levels, MPI_COMM_WORLD, NCDF_SIZE, NCFUNC, rank, and size.
Referenced by main().
void test_fv_read_write_T | ( | ) |
Definition at line 286 of file write_nc.cpp.
References CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_fv, get_fv_read_options(), moab::Core::load_file(), mb, MESHSET_SET, MPI_COMM_WORLD, and moab::Core::write_file().
Referenced by main().
void test_gcrm_check_vars | ( | ) |
Definition at line 818 of file write_nc.cpp.
References CHECK_EQUAL, CHECK_REAL_EQUAL, eps, example_gcrm, filename, levels, MPI_COMM_WORLD, NCDF_SIZE, NCFUNC, and rank.
Referenced by main().
void test_gcrm_read_write_vars | ( | ) |
Definition at line 777 of file write_nc.cpp.
References CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_gcrm, get_mpas_read_options(), moab::Core::load_file(), mb, MESHSET_SET, MPI_COMM_WORLD, and moab::Core::write_file().
Referenced by main().
void test_homme_check_T | ( | ) |
Definition at line 467 of file write_nc.cpp.
References CHECK_EQUAL, CHECK_REAL_EQUAL, eps, example_homme, filename, levels, MPI_COMM_WORLD, NCDF_SIZE, NCFUNC, rank, and size.
Referenced by main().
void test_homme_read_write_T | ( | ) |
Definition at line 423 of file write_nc.cpp.
References CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_homme, get_homme_read_options(), moab::Core::load_file(), mb, MESHSET_SET, MPI_COMM_WORLD, and moab::Core::write_file().
Referenced by main().
void test_mpas_check_vars | ( | ) |
Definition at line 628 of file write_nc.cpp.
References CHECK_EQUAL, CHECK_REAL_EQUAL, eps, example_mpas, filename, mpas_levels, MPI_COMM_WORLD, NCDF_SIZE, NCFUNC, and rank.
Referenced by main().
void test_mpas_read_write_vars | ( | ) |
Definition at line 589 of file write_nc.cpp.
References CHECK_ERR, moab::Core::create_meshset(), ErrorCode, example_mpas, get_mpas_read_options(), moab::Core::load_file(), mb, MESHSET_SET, MPI_COMM_WORLD, and moab::Core::write_file().
Referenced by main().
const double eps = 1e-10 |
Definition at line 73 of file write_nc.cpp.
Referenced by test_eul_check_across_files(), test_eul_check_append(), test_eul_check_T(), test_eul_check_timestep(), test_fv_check_T(), test_gcrm_check_vars(), test_homme_check_T(), and test_mpas_check_vars().
std::string example_eul = TestDir + "unittest/io/eul3x48x96.t.3.nc" |
Definition at line 6 of file write_nc.cpp.
Referenced by test_eul_check_across_files(), test_eul_check_append(), test_eul_check_T(), test_eul_check_timestep(), test_eul_read_write_append(), test_eul_read_write_T(), and test_eul_read_write_timestep().
std::string example_eul_t0 = TestDir + "unittest/io/eul3x48x96.t0.nc" |
Definition at line 7 of file write_nc.cpp.
Referenced by test_eul_read_write_across_files().
std::string example_eul_t1 = TestDir + "unittest/io/eul3x48x96.t1.nc" |
Definition at line 8 of file write_nc.cpp.
Referenced by test_eul_read_write_across_files().
std::string example_eul_t2 = TestDir + "unittest/io/eul3x48x96.t2.nc" |
Definition at line 9 of file write_nc.cpp.
Referenced by test_eul_read_write_across_files().
std::string example_fv = TestDir + "unittest/io/fv3x46x72.t.3.nc" |
Definition at line 10 of file write_nc.cpp.
Referenced by test_fv_check_T(), and test_fv_read_write_T().
std::string example_gcrm = TestDir + "unittest/io/gcrm_r3.nc" |
Definition at line 13 of file write_nc.cpp.
Referenced by test_gcrm_check_vars(), and test_gcrm_read_write_vars().
std::string example_homme = TestDir + "unittest/io/homme3x3458.t.3.nc" |
Definition at line 11 of file write_nc.cpp.
Referenced by test_homme_check_T(), and test_homme_read_write_T().
std::string example_mpas = TestDir + "unittest/io/mpasx1.642.t.2.nc" |
Definition at line 12 of file write_nc.cpp.
Referenced by test_mpas_check_vars(), and test_mpas_read_write_vars().
const int levels = 3 |
Definition at line 74 of file write_nc.cpp.
Referenced by test_eul_check_across_files(), test_eul_check_append(), test_eul_check_T(), test_eul_check_timestep(), test_fv_check_T(), test_gcrm_check_vars(), and test_homme_check_T().
const int mpas_levels = 1 |
Definition at line 75 of file write_nc.cpp.
Referenced by test_mpas_check_vars().