MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "TestUtil.hpp"
#include "moab/Core.hpp"
#include "moab/ParallelComm.hpp"
#include "moab/ProgOptions.hpp"
#include "MBParallelConventions.h"
#include "moab/ReadUtilIface.hpp"
#include "MBTagConventions.hpp"
#include <sstream>
Go to the source code of this file.
Functions | |
void | test_read_onevar_trivial () |
void | test_read_onevar_trivial_no_mixed_elements () |
void | test_read_mesh_parallel_trivial () |
void | test_read_mesh_parallel_trivial_no_mixed_elements () |
void | test_gather_onevar_on_rank0 () |
void | test_gather_onevar_on_rank1 () |
void | test_multiple_loads_of_same_file () |
void | test_multiple_loads_of_same_file_no_mixed_elements () |
void | read_one_cell_var (bool rcbzoltan, bool no_mixed_elements) |
void | read_mesh_parallel (bool rcbzoltan, bool no_mixed_elements) |
void | gather_one_cell_var (int gather_set_rank) |
void | multiple_loads_of_same_file (bool no_mixed_elements) |
int | main (int argc, char *argv[]) |
void | test_read_onevar_rcbzoltan () |
void | test_read_onevar_rcbzoltan_no_mixed_elements () |
void | test_read_mesh_parallel_rcbzoltan () |
void | test_read_mesh_parallel_rcbzoltan_no_mixed_elements () |
Variables | |
std::string | example = TestDir + "unittest/io/mpasx1.642.t.2.nc" |
std::string | read_options |
const double | eps = 1e-20 |
void gather_one_cell_var | ( | int | gather_set_rank | ) |
Definition at line 425 of file mpastrvpart.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(), 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::ProcConfig::proc_size(), moab::Range::psize(), PSTATUS_NOT, PSTATUS_NOT_OWNED, moab::Interface::query_interface(), rank, read_options, moab::Range::size(), moab::Core::tag_get_data(), and moab::Core::tag_get_handle().
Referenced by test_gather_onevar_on_rank0(), and test_gather_onevar_on_rank1().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 44 of file mpastrvpart.cpp.
References RUN_TEST, test_gather_onevar_on_rank0(), test_gather_onevar_on_rank1(), test_multiple_loads_of_same_file(), test_multiple_loads_of_same_file_no_mixed_elements(), test_read_mesh_parallel_rcbzoltan(), test_read_mesh_parallel_rcbzoltan_no_mixed_elements(), test_read_mesh_parallel_trivial(), test_read_mesh_parallel_trivial_no_mixed_elements(), test_read_onevar_rcbzoltan(), test_read_onevar_rcbzoltan_no_mixed_elements(), test_read_onevar_trivial(), and test_read_onevar_trivial_no_mixed_elements().
void multiple_loads_of_same_file | ( | bool | no_mixed_elements | ) |
Definition at line 492 of file mpastrvpart.cpp.
References CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, moab::Core::create_meshset(), eps, ErrorCode, example, moab::Core::get_entities_by_type(), moab::ParallelComm::get_pcomm(), moab::Core::load_file(), mb, MB_TYPE_DOUBLE, MBEDGE, MBPOLYGON, MBVERTEX, MESHSET_SET, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_rank(), moab::ProcConfig::proc_size(), moab::Range::psize(), rank, read_options, moab::Range::size(), moab::Core::tag_get_data(), and moab::Core::tag_get_handle().
Referenced by test_multiple_loads_of_same_file(), and test_multiple_loads_of_same_file_no_mixed_elements().
void read_mesh_parallel | ( | bool | rcbzoltan, |
bool | no_mixed_elements | ||
) |
Definition at line 256 of file mpastrvpart.cpp.
References moab::ParallelComm::check_all_shared_handles(), CHECK_EQUAL, CHECK_ERR, ErrorCode, example, moab::ParallelComm::filter_pstatus(), moab::Core::get_entities_by_type(), moab::ParallelComm::get_pcomm(), moab::Core::load_file(), mb, MBEDGE, MBPOLYGON, MBVERTEX, moab::ProcConfig::proc_comm(), moab::ParallelComm::proc_config(), moab::ProcConfig::proc_rank(), moab::ProcConfig::proc_size(), moab::Range::psize(), PSTATUS_NOT, PSTATUS_NOT_OWNED, rank, read_options, moab::Range::size(), and moab::Core::write_file().
Referenced by test_read_mesh_parallel_rcbzoltan(), test_read_mesh_parallel_rcbzoltan_no_mixed_elements(), test_read_mesh_parallel_trivial(), and test_read_mesh_parallel_trivial_no_mixed_elements().
void read_one_cell_var | ( | bool | rcbzoltan, |
bool | no_mixed_elements | ||
) |
Definition at line 134 of file mpastrvpart.cpp.
References CHECK_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, eps, ErrorCode, example, moab::Core::get_entities_by_type(), moab::ParallelComm::get_pcomm(), moab::Core::globalId_tag(), moab::Core::load_file(), mb, MB_TYPE_DOUBLE, MBEDGE, MBPOLYGON, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_rank(), moab::ProcConfig::proc_size(), moab::Range::psize(), rank, read_options, moab::Range::size(), moab::Core::tag_get_data(), and moab::Core::tag_get_handle().
Referenced by test_read_onevar_rcbzoltan(), test_read_onevar_rcbzoltan_no_mixed_elements(), test_read_onevar_trivial(), and test_read_onevar_trivial_no_mixed_elements().
void test_gather_onevar_on_rank0 | ( | ) |
Definition at line 113 of file mpastrvpart.cpp.
References gather_one_cell_var().
Referenced by main().
void test_gather_onevar_on_rank1 | ( | ) |
Definition at line 118 of file mpastrvpart.cpp.
References gather_one_cell_var().
Referenced by main().
void test_multiple_loads_of_same_file | ( | ) |
Definition at line 123 of file mpastrvpart.cpp.
References multiple_loads_of_same_file().
Referenced by main().
void test_multiple_loads_of_same_file_no_mixed_elements | ( | ) |
Definition at line 128 of file mpastrvpart.cpp.
References multiple_loads_of_same_file().
Referenced by main().
void test_read_mesh_parallel_rcbzoltan | ( | ) |
Definition at line 103 of file mpastrvpart.cpp.
References read_mesh_parallel().
Referenced by main().
void test_read_mesh_parallel_rcbzoltan_no_mixed_elements | ( | ) |
Definition at line 108 of file mpastrvpart.cpp.
References read_mesh_parallel().
Referenced by main().
void test_read_mesh_parallel_trivial | ( | ) |
Definition at line 93 of file mpastrvpart.cpp.
References read_mesh_parallel().
Referenced by main().
void test_read_mesh_parallel_trivial_no_mixed_elements | ( | ) |
Definition at line 98 of file mpastrvpart.cpp.
References read_mesh_parallel().
Referenced by main().
void test_read_onevar_rcbzoltan | ( | ) |
Definition at line 83 of file mpastrvpart.cpp.
References read_one_cell_var().
Referenced by main().
void test_read_onevar_rcbzoltan_no_mixed_elements | ( | ) |
Definition at line 88 of file mpastrvpart.cpp.
References read_one_cell_var().
Referenced by main().
void test_read_onevar_trivial | ( | ) |
Definition at line 73 of file mpastrvpart.cpp.
References read_one_cell_var().
Referenced by main().
void test_read_onevar_trivial_no_mixed_elements | ( | ) |
Definition at line 78 of file mpastrvpart.cpp.
References read_one_cell_var().
Referenced by main().
const double eps = 1e-20 |
Definition at line 42 of file mpastrvpart.cpp.
Referenced by gather_one_cell_var(), multiple_loads_of_same_file(), and read_one_cell_var().
std::string example = TestDir + "unittest/io/mpasx1.642.t.2.nc" |
Definition at line 13 of file mpastrvpart.cpp.
Referenced by gather_one_cell_var(), multiple_loads_of_same_file(), read_mesh_parallel(), and read_one_cell_var().
std::string read_options |
Definition at line 41 of file mpastrvpart.cpp.
Referenced by gather_one_cell_var(), multiple_loads_of_same_file(), read_mesh_parallel(), and read_one_cell_var().