MOAB: Mesh Oriented datABase
(version 5.4.1)
|
#include "moab/ScdInterface.hpp"
#include "moab/Core.hpp"
#include "TestUtil.hpp"
#include <iostream>
Go to the source code of this file.
Functions | |
void | test_sqijk () |
int | main (int argc, char **argv) |
Variables | |
int | gdims [6] |
int | np |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 39 of file scd_test_partn.cpp.
References gdims, np, RUN_TEST, and test_sqijk().
{ if( argc < 2 ) { std::cout << "Usage: " << argv[0] << " <#proc> [<imax> [<jmax> <kmax>]]" << std::endl; std::cout << "Using default parameters for autotest purposes." << std::endl; np = 4; gdims[0] = gdims[1] = gdims[2] = 0; gdims[3] = gdims[4] = gdims[5] = 100; } else if( argc < 3 ) { np = atoi( argv[1] ); gdims[0] = gdims[1] = gdims[2] = 0; gdims[3] = gdims[4] = gdims[5] = 100; } else if( argc < 4 ) { np = atoi( argv[1] ); gdims[0] = gdims[1] = gdims[2] = 0; gdims[3] = gdims[4] = gdims[5] = atoi( argv[2] ); } else if( argc < 6 ) { np = atoi( argv[1] ); gdims[0] = gdims[1] = gdims[2] = 0; gdims[3] = atoi( argv[2] ); gdims[4] = atoi( argv[3] ); gdims[5] = atoi( argv[4] ); } // test partition method RUN_TEST( test_sqijk ); }
void test_sqijk | ( | ) |
Definition at line 15 of file scd_test_partn.cpp.
References CHECK_ERR, moab::ScdInterface::compute_partition(), ErrorCode, gdims, moab::ScdParData::gDims, moab::ScdParData::gPeriodic, np, moab::ScdParData::partMethod, and moab::ScdParData::SQIJK.
Referenced by main().
{ Core moab; ScdInterface* scd; ErrorCode rval = moab.Interface::query_interface( scd );CHECK_ERR( rval ); int ldims[6]; ScdParData par_data; std::copy( gdims, gdims + 6, par_data.gDims ); for( int i = 0; i < 3; i++ ) par_data.gPeriodic[i] = 0; par_data.partMethod = ScdParData::SQIJK; std::cout << "gDims = (" << par_data.gDims[0] << "," << par_data.gDims[1] << "," << par_data.gDims[2] << ")--(" << par_data.gDims[3] << "," << par_data.gDims[4] << "," << par_data.gDims[5] << ")" << std::endl; int lperiodic[3], pijk[3]; rval = ScdInterface::compute_partition( np, 0, par_data, ldims, lperiodic, pijk );CHECK_ERR( rval ); std::cout << "#proc in 3 directions = (" << pijk[0] << "," << pijk[1] << "," << pijk[2] << ")" << std::endl; std::cout << "local dims are (" << ldims[0] << "," << ldims[1] << "," << ldims[2] << ")--(" << ldims[3] << "," << ldims[4] << "," << ldims[5] << ")\n"; }
int gdims[6] |
Definition at line 13 of file scd_test_partn.cpp.
Referenced by main(), moab::ScdInterface::tag_shared_vertices(), test_parallel_partitions(), and test_sqijk().
int np |
Definition at line 13 of file scd_test_partn.cpp.
Referenced by moab::AdaptiveKDTree::best_vertex_median_plane(), check_shared_ents(), moab::ParCommGraph::compute_partition(), moab::ScdInterface::compute_partition_alljkbal(), moab::ScdInterface::compute_partition_alljorkori(), moab::ScdInterface::compute_partition_sqijk(), moab::ScdInterface::compute_partition_sqjk(), moab::IntxUtils::EdgeIntxRllCs(), moab::ScdInterface::get_neighbor_alljkbal(), moab::ScdInterface::get_neighbor_sqij(), moab::ScdInterface::get_neighbor_sqjk(), lobatto_nodes_aux(), main(), moab::putSpectralElementField(), moab::ParallelComm::resolve_shared_ents(), moab::ParallelComm::resolve_shared_sets(), test_great_arc_clat_intx(), and test_sqijk().