30 int main(
int argc,
char* argv[] )
33 MPI_Init( &argc, &argv );
36 std::string def_file( TestDir +
"unittest/io/brick_cubit10.2.cub" );
37 const char* file = def_file.c_str();
40 std::cout <<
"Usage: tqdcfr <cub_file_name>" << std::endl;
53 std::cout <<
"Success." << std::endl;
56 std::cout <<
"load_file returned error:" << std::endl;
60 std::cout << errs << std::endl;
62 std::cout <<
"(no message)" << std::endl;
70 my_tqd =
new Tqdcfr( my_impl );
72 result = my_tqd->
load_file( file, 0, opts, 0, 0 );
75 std::cout <<
"Success." << std::endl;
78 std::cout <<
"load_file returned error:" << std::endl;
82 std::cout << errstr << std::endl;
84 std::cout <<
"(no message)" << std::endl;
97 if( NULL == my_impl )
return 1;
99 std::string options =
"PARALLEL=READ_DELETE;PARTITION=MATERIAL_SET;PARTITION_DISTRIBUTE";
100 std::cout <<
"Testing parallel..." << std::endl;
102 result = my_impl->
load_file( file, 0, options.c_str() );
105 std::cout <<
"Success." << std::endl;
108 std::cout <<
"load_file returned error:" << std::endl;
112 std::cout << errstr << std::endl;
114 std::cout <<
"(no message)" << std::endl;