44 int main(
int argc,
char* argv[] )
49 std::string physfile, pg2file, outfile;
51 opts.
addOpt< std::string >(
"physgridfile,p",
"phys grid filename", &physfile );
52 opts.
addOpt< std::string >(
"pg2file,g",
"pg2 mesh file", &pg2file );
53 opts.
addOpt< std::string >(
"output,o",
"output mesh filename", &outfile );
57 std::cout <<
"phys grid cloud file: " << physfile <<
"\n";
58 std::cout <<
"pg2 mesh file: " << pg2file <<
"\n";
59 std::cout <<
"output file: " << outfile <<
"\n";
61 if( physfile.empty() )
83 std::vector< int > partValues;
84 partValues.resize( verts1.
size() );
89 std::vector< int > globalIdsCells;
90 globalIdsCells.resize( cells.
size() );
93 std::vector< int > globalIdsVerts;
94 globalIdsVerts.resize( verts1.
size() );
103 std::vector< int > setValues;
104 setValues.resize( sets.
size() );
107 std::map< int, EntityHandle > valToSet;
111 valToSet[setValues[i]] = *st;
115 std::map< int, EntityHandle > gidToCell;
119 gidToCell[globalIdsCells[i]] = *it;
125 for( i = 0; i < (int)verts1.
size(); i++ )
127 int part = partValues[i];
128 int gid = globalIdsVerts[i];