MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "moab/ScdInterface.hpp"
#include "moab/Core.hpp"
#include "TestUtil.hpp"
#include <iostream>
Go to the source code of this file.
Macros | |
#define | PARRAY(a) "(" << ( a )[0] << "," << ( a )[1] << "," << ( a )[2] << ")" |
#define | PARRAY3(a, b, c) "(" << ( a ) << "," << ( b ) << "," << ( c ) << ")" |
#define | PARRAY6(a) PARRAY( a ) << "-" << PARRAY( ( ( a ) + 3 ) ) |
#define PARRAY | ( | a | ) | "(" << ( a )[0] << "," << ( a )[1] << "," << ( a )[2] << ")" |
#define PARRAY3 | ( | a, | |
b, | |||
c | |||
) | "(" << ( a ) << "," << ( b ) << "," << ( c ) << ")" |
Definition at line 1060 of file scdseq_test.cpp.
References box(), box_max(), box_min(), ErrorCode, moab::HomCoord::i(), moab::HomCoord::j(), moab::HomCoord::k(), and MB_SUCCESS.
Referenced by eseq_test1b(), eseq_test1c(), eseq_test2b(), eseq_test2c(), and eseq_test2d().
ErrorCode check_element_sequence | ( | const ScdBox * | this_box, |
const HomCoord & | min_params, | ||
const HomCoord & | max_params, | ||
const EntityHandle | this_start | ||
) |
Definition at line 117 of file scdseq_test.cpp.
References moab::ScdBox::boundary_complete(), moab::ScdBox::box_max(), moab::ScdBox::box_min(), moab::ScdBox::box_size(), ErrorCode, moab::HomCoord::i(), moab::HomCoord::j(), moab::HomCoord::k(), MB_SUCCESS, and moab::ScdBox::start_element().
Referenced by eseq_test1a(), eseq_test1b(), eseq_test1c(), eseq_test2a(), eseq_test2b(), eseq_test2c(), and eseq_test2d().
ErrorCode check_vertex_sequence | ( | const ScdBox * | this_box, |
const int | imin, | ||
const int | jmin, | ||
const int | kmin, | ||
const int | imax, | ||
const int | jmax, | ||
const int | kmax, | ||
const EntityHandle | this_start | ||
) |
Definition at line 82 of file scdseq_test.cpp.
References moab::ScdBox::box_max(), moab::ScdBox::box_min(), moab::ScdBox::box_size(), ErrorCode, MB_SUCCESS, and moab::ScdBox::start_vertex().
Referenced by test_vertex_seq().
ErrorCode create_1d_3_sequences | ( | ScdInterface * | scdi, |
HomCoord | tmp_min, | ||
HomCoord | tmp_max, | ||
ScdBox ** | vseq, | ||
ScdBox ** | eseq | ||
) |
Definition at line 611 of file scdseq_test.cpp.
References moab::ScdBox::add_vbox(), box_max(), box_min(), CHECK_ERR, moab::ScdInterface::create_scd_sequence(), ErrorCode, moab::HomCoord::getUnitv(), MBEDGE, and MBVERTEX.
Referenced by eseq_test2a().
ErrorCode create_2d_3_sequences | ( | ScdInterface * | scdi, |
ScdBox ** | vseq, | ||
ScdBox ** | eseq | ||
) |
Definition at line 683 of file scdseq_test.cpp.
References moab::ScdBox::add_vbox(), box_max(), box_min(), CHECK_ERR, moab::ScdInterface::create_scd_sequence(), ErrorCode, moab::HomCoord::getUnitv(), MBEDGE, MBQUAD, and MBVERTEX.
Referenced by eseq_test2b().
ErrorCode create_2dtri_3_sequences | ( | ScdInterface * | scdi, |
const int | int1, | ||
const int | int2, | ||
const int | int3, | ||
ScdBox ** | vseq, | ||
ScdBox ** | eseq | ||
) |
Definition at line 808 of file scdseq_test.cpp.
References moab::ScdBox::add_vbox(), box_max(), box_min(), CHECK_ERR, moab::ScdInterface::create_scd_sequence(), ErrorCode, moab::HomCoord::getUnitv(), MBQUAD, and MBVERTEX.
Referenced by eseq_test2c().
ErrorCode create_3dtri_3_sequences | ( | ScdInterface * | scdi, |
const int | int1, | ||
const int | int2, | ||
const int | int3, | ||
const int | int4, | ||
ScdBox ** | vseq, | ||
ScdBox ** | eseq | ||
) |
Definition at line 932 of file scdseq_test.cpp.
References moab::ScdBox::add_vbox(), box_max(), box_min(), CHECK_ERR, moab::ScdInterface::create_scd_sequence(), ErrorCode, moab::HomCoord::getUnitv(), MBHEX, and MBVERTEX.
Referenced by eseq_test2d().
ErrorCode eseq_test1a | ( | ScdInterface * | scdi, |
HomCoord | tmp_min, | ||
HomCoord | tmp_max | ||
) |
Definition at line 362 of file scdseq_test.cpp.
References moab::ScdBox::add_vbox(), check_element_sequence(), CHECK_EQUAL, CHECK_ERR, moab::ScdInterface::create_scd_sequence(), ErrorCode, evaluate_element_sequence(), MBEDGE, MBVERTEX, moab::ScdBox::num_elements(), and moab::ScdBox::start_element().
Referenced by test_element_seq().
ErrorCode eseq_test1b | ( | ScdInterface * | scdi, |
HomCoord | tmp_min, | ||
HomCoord | tmp_max | ||
) |
Definition at line 389 of file scdseq_test.cpp.
References access_adjacencies(), moab::ScdBox::add_vbox(), check_element_sequence(), CHECK_EQUAL, CHECK_ERR, moab::ScdInterface::create_scd_sequence(), ErrorCode, evaluate_element_sequence(), moab::Interface::get_connectivity(), moab::HomCoord::i(), moab::ScdInterface::impl(), moab::HomCoord::j(), moab::HomCoord::k(), MBQUAD, MBVERTEX, and moab::ScdBox::start_element().
Referenced by test_element_seq().
ErrorCode eseq_test1c | ( | ScdInterface * | scdi, |
const HomCoord & | tmp_min, | ||
const HomCoord & | tmp_max | ||
) |
Definition at line 423 of file scdseq_test.cpp.
References access_adjacencies(), moab::ScdBox::add_vbox(), check_element_sequence(), CHECK_ERR, moab::ScdInterface::create_scd_sequence(), ErrorCode, evaluate_element_sequence(), moab::HomCoord::i(), moab::HomCoord::j(), moab::HomCoord::k(), MBHEX, MBVERTEX, and moab::ScdBox::start_element().
Referenced by test_element_seq().
ErrorCode eseq_test2a | ( | ScdInterface * | scdi, |
const HomCoord & | tmp_min, | ||
const HomCoord & | tmp_max | ||
) |
Definition at line 449 of file scdseq_test.cpp.
References box_max(), box_min(), check_element_sequence(), CHECK_ERR, create_1d_3_sequences(), ErrorCode, and evaluate_element_sequence().
Referenced by test_element_seq().
ErrorCode eseq_test2b | ( | ScdInterface * | scdi | ) |
Definition at line 475 of file scdseq_test.cpp.
References access_adjacencies(), box_max(), box_min(), check_element_sequence(), CHECK_ERR, create_2d_3_sequences(), ErrorCode, and evaluate_element_sequence().
Referenced by test_element_seq().
ErrorCode eseq_test2c | ( | ScdInterface * | scdi | ) |
Definition at line 509 of file scdseq_test.cpp.
References access_adjacencies(), box_max(), box_min(), check_element_sequence(), CHECK_ERR, create_2dtri_3_sequences(), ErrorCode, and evaluate_element_sequence().
Referenced by test_element_seq().
ErrorCode eseq_test2d | ( | ScdInterface * | scdi | ) |
Definition at line 537 of file scdseq_test.cpp.
References access_adjacencies(), box_max(), box_min(), check_element_sequence(), CHECK_ERR, create_3dtri_3_sequences(), ErrorCode, and evaluate_element_sequence().
Referenced by test_element_seq().
Definition at line 218 of file scdseq_test.cpp.
References moab::ScdBox::box_max(), moab::ScdBox::box_min(), moab::ScdBox::contains(), ErrorCode, moab::ScdBox::get_element(), moab::ScdBox::get_params(), moab::ScdBox::get_vertex(), moab::ScdBox::locally_periodic_i(), moab::ScdBox::locally_periodic_j(), and MB_SUCCESS.
Referenced by eseq_test1a(), eseq_test1b(), eseq_test1c(), eseq_test2a(), eseq_test2b(), eseq_test2c(), eseq_test2d(), and test_periodic_seq().
Definition at line 154 of file scdseq_test.cpp.
References moab::ScdBox::box_max(), moab::ScdBox::box_min(), moab::ScdBox::contains(), ErrorCode, moab::ScdBox::get_params(), moab::ScdBox::get_vertex(), MB_SUCCESS, and moab::ScdBox::start_vertex().
Referenced by test_vertex_seq().
int main | ( | int | , |
char ** | |||
) |
Definition at line 282 of file scdseq_test.cpp.
References RUN_TEST, test_element_seq(), test_parallel_partitions(), test_periodic_seq(), and test_vertex_seq().
void test_element_seq | ( | ) |
Definition at line 340 of file scdseq_test.cpp.
References CHECK_ERR, ErrorCode, eseq_test1a(), eseq_test1b(), eseq_test1c(), eseq_test2a(), eseq_test2b(), eseq_test2c(), and eseq_test2d().
Referenced by main().
ErrorCode test_parallel_partition | ( | int * | gdims, |
int | nprocs, | ||
int | part_method | ||
) |
Definition at line 1203 of file scdseq_test.cpp.
References moab::ScdInterface::compute_partition(), ErrorCode, moab::fail(), moab::ScdParData::gDims, gdims, moab::ScdInterface::get_neighbor(), moab::ScdParData::gPeriodic, MB_SUCCESS, PARRAY3, PARRAY6, moab::ScdParData::partMethod, and moab::ScdParData::pDims.
Referenced by test_parallel_partitions().
void test_parallel_partitions | ( | ) |
Definition at line 1163 of file scdseq_test.cpp.
References moab::ScdParData::ALLJKBAL, moab::ScdParData::ALLJORKORI, CHECK_ERR, ErrorCode, gdims, MB_SUCCESS, moab::ScdParData::SQIJ, moab::ScdParData::SQIJK, moab::ScdParData::SQJK, and test_parallel_partition().
Referenced by main().
void test_partition_method | ( | ScdParData::PartitionMethod | pm | ) |
void test_partition_methods | ( | ) |
void test_periodic_seq | ( | ) |
Definition at line 565 of file scdseq_test.cpp.
References CHECK_ERR, moab::ScdInterface::construct_box(), ErrorCode, and evaluate_element_sequence().
Referenced by main().
void test_vertex_seq | ( | ) |
Definition at line 299 of file scdseq_test.cpp.
References CHECK_ERR, check_vertex_sequence(), moab::ScdInterface::create_scd_sequence(), ErrorCode, evaluate_vertex_sequence(), MBVERTEX, and moab::ScdBox::start_vertex().
Referenced by main().