14 std::cout <<
"Usage: " << argv <<
" nprocs filename" << std::endl;
17 int main(
int argc,
char* argv[] )
20 MPI_Init( &argc, &argv );
22 #define MPI_COMM_WORLD 0
25 if( 1 < argc && !strcmp( argv[1],
"-h" ) )
32 std::string ptag_name(
"GEOM_DIMENSION" );
33 std::vector< int > partition_tag_vals;
34 std::string
filename = TestDir +
"unittest/ptest.cub";
35 if( argc > 1 ) nprocs = atoi( argv[1] );
36 if( argc > 2 )
filename = std::string( argv[2] );
40 if( argc > 4 ) partition_tag_vals.push_back( atoi( argv[4] ) );
43 partition_tag_vals.push_back( 3 );
53 std::vector< ParallelComm* > pc( nprocs );
54 for(
int i = 0; i < nprocs; i++ )
58 pc[i]->set_size( nprocs );
61 std::vector< int > pa_vec;
65 bool partition_distrib =
true;
69 const char* fnames =
filename.c_str();
70 for(
int i = 0; i < nprocs; i++ )
74 partition_distrib,
false, pa_vec, fopts, NULL, NULL, i,
false, -1, -1, -1, -1, 0, 0 );
CHECK_ERR( rval );
88 for(
int i = 0; i < nprocs; i++ )