21 int main(
int argc,
char* argv[] )
26 std::string physfile, pg2file, outfile;
28 opts.
addOpt< std::string >(
"physgridfile,p",
"phys grid filename", &physfile );
29 opts.
addOpt< std::string >(
"pg2file,g",
"pg2 mesh file", &pg2file );
30 opts.
addOpt< std::string >(
"output,o",
"output mesh filename", &outfile );
34 std::cout <<
"phys grid cloud file: " << physfile <<
"\n";
35 std::cout <<
"pg2 mesh file: " << pg2file <<
"\n";
36 std::cout <<
"output file: " << outfile <<
"\n";
38 if( physfile.empty() )
60 std::vector< int > partValues;
61 partValues.resize( verts1.
size() );
66 std::vector< int > globalIdsCells;
67 globalIdsCells.resize( cells.
size() );
70 std::vector< int > globalIdsVerts;
71 globalIdsVerts.resize( verts1.
size() );
80 std::vector< int > setValues;
81 setValues.resize( sets.
size() );
84 std::map< int, EntityHandle > valToSet;
88 valToSet[setValues[i]] = *st;
92 std::map< int, EntityHandle > gidToCell;
96 gidToCell[globalIdsCells[i]] = *it;
102 for( i = 0; i < (int)verts1.
size(); i++ )
104 int part = partValues[i];
105 int gid = globalIdsVerts[i];