MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include <iostream>
#include <string>
#include <sstream>
#include <ctime>
#include <vector>
#include <algorithm>
#include "moab/Core.hpp"
#include "moab/Range.hpp"
#include "moab/MeshTopoUtil.hpp"
#include "moab/ReadUtilIface.hpp"
#include "moab/NestedRefine.hpp"
#include "TestUtil.hpp"
Go to the source code of this file.
Functions | |
void | handle_error_code (ErrorCode rv, int &number_failed, int &number_successful) |
ErrorCode | test_adjacencies (Interface *mbImpl, NestedRefine *nr, const Range &all_ents) |
ErrorCode | refine_entities (Interface *mb, ParallelComm *pc, EntityHandle fset, int *level_degrees, const int num_levels, bool output) |
ErrorCode | create_single_entity (Interface *mbImpl, EntityType type) |
ErrorCode | create_mesh (Interface *mbImpl, EntityType type) |
ErrorCode | create_simple_mesh (Interface *mbImpl, EntityType type) |
ErrorCode | test_entities (int mesh_type, EntityType type, int *level_degrees, int num_levels, bool output) |
ErrorCode | test_1D () |
ErrorCode | test_2D () |
ErrorCode | test_3D () |
ErrorCode | test_mesh (const char *filename, int *level_degrees, int num_levels) |
int | main (int argc, char *argv[]) |
Variables | |
int | number_tests_successful = 0 |
int | number_tests_failed = 0 |
Definition at line 712 of file urefine_mesh_test.cpp.
References CHECK_ERR, moab::Interface::create_element(), moab::Interface::create_vertex(), moab::error(), ErrorCode, MB_SUCCESS, MBEDGE, MBHEX, MBQUAD, MBTET, and MBTRI.
Referenced by test_entities().
Definition at line 843 of file urefine_mesh_test.cpp.
References CHECK_ERR, moab::Interface::create_element(), moab::Interface::create_vertex(), moab::error(), ErrorCode, MB_SUCCESS, MBEDGE, MBHEX, MBQUAD, MBTET, and MBTRI.
Referenced by test_entities().
Definition at line 583 of file urefine_mesh_test.cpp.
References CHECK_ERR, moab::Interface::create_element(), moab::Interface::create_vertex(), moab::error(), ErrorCode, MB_SUCCESS, MBEDGE, MBHEX, MBQUAD, MBTET, and MBTRI.
Referenced by test_entities().
void handle_error_code | ( | ErrorCode | rv, |
int & | number_failed, | ||
int & | number_successful | ||
) |
Definition at line 38 of file urefine_mesh_test.cpp.
References MB_SUCCESS, MPI_COMM_WORLD, and rank.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1159 of file urefine_mesh_test.cpp.
References ErrorCode, filename, handle_error_code(), MPI_COMM_WORLD, number_tests_failed, number_tests_successful, rank, test_1D(), test_2D(), test_3D(), and test_mesh().
ErrorCode refine_entities | ( | Interface * | mb, |
ParallelComm * | pc, | ||
EntityHandle | fset, | ||
int * | level_degrees, | ||
const int | num_levels, | ||
bool | output | ||
) |
Definition at line 351 of file urefine_mesh_test.cpp.
References CHECK_EQUAL, CHECK_ERR, moab::NestedRefine::child_to_parent(), children, dim, moab::Range::empty(), moab::Range::end(), moab::error(), ErrorCode, moab::ParallelComm::filter_pstatus(), moab::NestedRefine::generate_mesh_hierarchy(), moab::Core::get_entities_by_dimension(), moab::Core::get_entities_by_handle(), mb, MB_CHK_ERR, MB_SUCCESS, output, moab::NestedRefine::parent_to_child(), PSTATUS_GHOST, PSTATUS_NOT, size, moab::Range::size(), moab::Range::subset_by_dimension(), test_adjacencies(), moab::NestedRefine::timeall, moab::NestedRefine::codeperf::tm_refine, moab::NestedRefine::codeperf::tm_resolve, moab::NestedRefine::codeperf::tm_total, and moab::Core::write_file().
Referenced by test_entities(), and test_mesh().
ErrorCode test_1D | ( | ) |
Definition at line 1009 of file urefine_mesh_test.cpp.
References CHECK_ERR, moab::error(), ErrorCode, MB_SUCCESS, MBEDGE, and test_entities().
Referenced by main().
ErrorCode test_2D | ( | ) |
Definition at line 1034 of file urefine_mesh_test.cpp.
References CHECK_ERR, moab::error(), ErrorCode, length(), MB_SUCCESS, MBQUAD, MBTRI, and test_entities().
Referenced by main().
ErrorCode test_3D | ( | ) |
Definition at line 1074 of file urefine_mesh_test.cpp.
References CHECK_ERR, moab::error(), ErrorCode, length(), MB_SUCCESS, MBHEX, MBTET, and test_entities().
Referenced by main().
ErrorCode test_adjacencies | ( | Interface * | mbImpl, |
NestedRefine * | nr, | ||
const Range & | all_ents | ||
) |
Definition at line 58 of file urefine_mesh_test.cpp.
References moab::Range::begin(), CHECK, CHECK_EQUAL, CHECK_ERR, moab::Range::clear(), moab::Range::empty(), moab::Range::end(), moab::error(), ErrorCode, moab::Interface::get_adjacencies(), moab::MeshTopoUtil::get_bridge_adjacencies(), moab::Interface::get_connectivity(), MB_SUCCESS, nr, moab::Range::print(), moab::Interface::query_interface(), moab::Range::size(), moab::Range::subset_by_dimension(), moab::subtract(), and moab::ReadUtilIface::update_adjacencies().
Referenced by refine_entities().
ErrorCode test_entities | ( | int | mesh_type, |
EntityType | type, | ||
int * | level_degrees, | ||
int | num_levels, | ||
bool | output | ||
) |
Definition at line 977 of file urefine_mesh_test.cpp.
References create_mesh(), create_simple_mesh(), create_single_entity(), moab::error(), ErrorCode, mb, MB_SUCCESS, output, and refine_entities().
ErrorCode test_mesh | ( | const char * | filename, |
int * | level_degrees, | ||
int | num_levels | ||
) |
Definition at line 1114 of file urefine_mesh_test.cpp.
References CHECK_ERR, moab::Interface::create_meshset(), moab::error(), ErrorCode, filename, moab::ParallelComm::get_comm_procs(), moab::ParallelComm::get_pcomm(), moab::Interface::load_file(), MB_CHK_ERR, MB_SUCCESS, MESHSET_SET, MPI_COMM_WORLD, read_options, and refine_entities().
Referenced by main().
int number_tests_failed = 0 |
Definition at line 36 of file urefine_mesh_test.cpp.
Referenced by main().
int number_tests_successful = 0 |
Definition at line 35 of file urefine_mesh_test.cpp.
Referenced by main().