41 int main(
int argc,
char** argv )
45 std::cerr <<
"Usage: " << argv[0] <<
" <input file> <part file> <#parts> <output file>\n";
48 std::string mesh_file = argv[1];
49 std::string part_file = argv[2];
50 int nparts = std::stoi( argv[3] );
53 auto mb = std::make_unique< Core >();
56 std::ifstream inFile( part_file );
63 std::cout <<
"Number of sets is " << sets.
size() << std::endl;
68 int num_deleted_sets = 0;
69 for(
auto it = sets.
begin(); it != sets.
end(); ++it )
81 if( num_deleted_sets )
82 std::cout <<
"Deleted " << num_deleted_sets <<
" existing partition sets, and created new ones.\n";
86 std::vector< EntityHandle > psets(
nparts );
87 for(
int i = 0; i <
nparts; i++ )
93 for(
auto it = cells.
begin(); it != cells.
end(); ++it )
102 std::cout <<
"Partitioned mesh written to '" <<
out_file <<
"'.\n";