Example demonstrating partition information copying between mesh files. More...
Include dependency graph for copyPartition.cpp:Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
Example demonstrating partition information copying between mesh files.
This example shows how to:
This tool is useful for climate model visualization where partition information needs to be transferred between different mesh representations (point cloud to structured mesh).
this tool will take an existing h5m phys grid partition file (point cloud) and copy the partition information on a pg2 mesh file, for better viewing with VisIt
example of usage: ./copyPartition -p AtmPhys.h5m -g wholeATM_PG2.h5m -o atm_PG2_part.h5m
the *PG2" style atm mesh is available in E3SM only for pg2 runs, something like –res ne30pg2_r05_oECv3_ICG –compset A_WCYCL1850S_CMIP6 or –res ne4pg2_ne4pg2 –compset FC5AV1C-L
| argc | Number of command line arguments |
| argv | Command line arguments array |
Definition in file copyPartition.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 44 of file copyPartition.cpp.
References moab::Core::add_entities(), ProgOptions::addOpt(), moab::Range::begin(), moab::Core::clear_meshset(), moab::Range::end(), ErrorCode, moab::Core::get_entities_by_dimension(), moab::Core::get_entities_by_type_and_tag(), moab::Core::globalId_tag(), moab::Core::load_file(), mb, MB_CHK_ERR, MB_CHK_SET_ERR, MBENTITYSET, ProgOptions::parseCommandLine(), ProgOptions::printHelp(), moab::Range::size(), moab::Core::tag_get_data(), moab::Core::tag_get_handle(), and moab::Core::write_file().