Description: This example tests MOAB's trace back error handler in parallel.
To run: mpiexec -np <n> ./TestErrorHandlingPar <test_case_num(1 to 2)>
#ifdef MOAB_HAVE_MPI
#endif
#include <iostream>
using namespace std;
{
string opts = ";;";
#ifdef MOAB_HAVE_MPI
opts += "PARALLEL=READ_PART;PARTITION_METHOD=SQIJ";
#endif
string test_file = string(
MESH_DIR ) + string(
"/io/fv3x46x72.t.3.nc" );
opts += ";VARIABLE=US";
}
{
string opts = ";;";
#ifdef MOAB_HAVE_MPI
opts += "PARALLEL=READ_PART;PARTITION_METHOD=UNKNOWN";
#endif
string test_file = string(
MESH_DIR ) + string(
"/io/fv3x46x72.t.3.nc" );
opts += ";VARIABLE=T";
}
int main(
int argc,
char** argv )
{
if( argc < 2 )
{
cout << "Usage: " << argv[0] << " <test_case_num(1 to 2>" << endl;
return 0;
}
#ifdef MOAB_HAVE_MPI
MPI_Init( &argc, &argv );
#endif
int test_case_num = atoi( argv[1] );
switch( test_case_num )
{
case 1:
break;
case 2:
break;
default:
break;
}
#ifdef MOAB_HAVE_MPI
MPI_Finalize();
#endif
return 0;
}