#include "Tqdcfr.hpp"
#include "moab/Core.hpp"
#include "moab/Range.hpp"
#include "moab/FileOptions.hpp"
#include "TestUtil.hpp"
#include <iostream>
#include <string>
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 30 of file tqdcfr_test.cpp.
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;
References ErrorCode, moab::Core::get_last_error(), moab::Tqdcfr::load_file(), moab::Core::load_file(), MB_SUCCESS, MPI_COMM_WORLD, and rank.