- Examples
- ReadPartFile.cpp.
Definition at line 22 of file ReadPartFile.cpp.
26 if( NULL ==
mb )
return 1;
38 cerr <<
" usage is " << argv[0] <<
" <input file> <part file> <#parts> <output file> \n";
56 cout <<
"Number of sets is " << sets.
size() << endl;
63 int num_deleted_sets = 0;
76 if( num_deleted_sets ) cout <<
"delete " << num_deleted_sets <<
" existing partition sets, and create new ones \n";
80 for(
int i = 0; i <
nparts; i++ )
References moab::Core::add_entities(), moab::Range::begin(), moab::Core::create_meshset(), moab::Core::delete_entities(), moab::Range::end(), ErrorCode, moab::Core::get_entities_by_dimension(), moab::Core::get_entities_by_type(), moab::Core::load_mesh(), mb, MB_CHK_ERR, MBENTITYSET, MESHSET_SET, nparts, part_file_name, moab::Range::size(), moab::Core::tag_get_data(), moab::Core::tag_get_handle(), moab::Core::tag_set_data(), test_file_name, and moab::Core::write_file().