23 int main(
int argc,
char** argv )
28 opts.
addOpt<
string >(
"inFile,i",
"Specify the input file name string ", &inputFile );
30 string outFile =
"out.h5m";
31 opts.
addOpt<
string >(
"outFile,o",
"Specify the output file name string ", &outFile );
40 cout <<
" reading file " << inputFile <<
"\n";
46 cout <<
"number of cells: " << elems.
size() <<
"\n";
57 std::vector< EntityHandle > new_verts;
62 for(
int i = 1; i <= number_nodes; i++ )
65 if( i < number_nodes )
69 if( current != nextV )
71 new_verts.push_back( current );
75 if( number_nodes > (
int)new_verts.size() )
83 cout <<
"delete old cell " << cell <<
" with num_nodes vertices: " << number_nodes
84 <<
" and with global id: " << gid <<
"\n";
85 for(
int i = 0; i < number_nodes; i++ )
87 cout <<
" " << conn[i];