31 filename = string( argv[1] );
33 filename = string(
MESH_DIR ) + string(
"/64bricks_512hex_256part.h5m" );
37 tagName = string( argv[2] );
43 tagValues.resize( argc - 3, 0 );
44 for(
int i = 3; i < argc; ++i )
45 tagValues[i - 3] = atoi( argv[i] );
49 for(
unsigned i = 0; i < tagValues.size(); ++i )
50 tagValues[i] = 2 * i + 1;
53 if( argc > 1 && argc < 4 )
54 cout <<
" usage is " << argv[0] <<
" <file> <tag_name> <value1> <value2> .. \n";
58 int main(
int argc,
char** argv )
62 if( NULL ==
mb )
return 1;
64 std::string filename, tagname;
80 vector< long > valsTag( verts.
size() );
82 if(
MB_SUCCESS == rval ) cout <<
"First 2 long values recovered: " << valsTag[0] <<
" " << valsTag[1] <<
"\n";
86 cout <<
"Wrote successfully part.h5m.\n";
89 std::cout <<
"Configure MOAB with HDF5 to build and use this example correctly.\n";