47 int main(
int argc,
char** argv )
52 opts.
addOpt<
string >(
"inFile,i",
"Specify the input file name string ", &inputFile );
54 string outFile =
"out.h5m";
55 opts.
addOpt<
string >(
"outFile,o",
"Specify the output file name string ", &outFile );
64 cout <<
" reading file " << inputFile <<
"\n";
70 cout <<
"number of cells: " << elems.
size() <<
"\n";
81 std::vector< EntityHandle > new_verts;
86 for(
int i = 1; i <= number_nodes; i++ )
89 if( i < number_nodes )
93 if( current != nextV )
95 new_verts.push_back( current );
99 if( number_nodes > (
int)new_verts.size() )
106 "Error creating new polygon " );
108 cout <<
"delete old cell " << cell <<
" with num_nodes vertices: " << number_nodes
109 <<
" and with global id: " << gid <<
"\n";
110 for(
int i = 0; i < number_nodes; i++ )
112 cout <<
" " << conn[i];