![]() |
Mesh Oriented datABase
(version 5.4.1)
Array-based unstructured mesh datastructure
|
Go to the source code of this file.
Defines | |
#define | MESH_DIR "." |
Functions | |
int | main (int argc, char **argv) |
Variables | |
string | test_file_name = string( MESH_DIR ) + string( "/3k-tri-sphere.vtk" ) |
string | part_file_name |
int | nparts |
#define MESH_DIR "." |
Definition at line 15 of file ReadPartFile.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 22 of file ReadPartFile.cpp.
References moab::Interface::add_entities(), moab::Range::begin(), moab::Interface::create_meshset(), moab::Interface::delete_entities(), moab::Range::end(), ErrorCode, moab::Interface::get_entities_by_dimension(), moab::Interface::get_entities_by_type(), moab::Interface::load_mesh(), mb, MB_CHK_ERR, MBENTITYSET, MESHSET_SET, nparts, part_file_name, moab::Range::size(), moab::Interface::tag_get_data(), moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), test_file_name, and moab::Interface::write_file().
{
// Get MOAB instance
Interface* mb = new( std::nothrow ) Core;
if( NULL == mb ) return 1;
// Need option handling here for input filename
if( argc > 4 )
{
// User has input a mesh file
test_file_name = argv[1];
part_file_name = argv[2];
nparts = atoi( argv[3] );
}
else
{
cerr << " usage is " << argv[0] << " <#parts>
int nparts |
Definition at line 21 of file ReadPartFile.cpp.
Referenced by moab::MeshOutputFunctor::assign_global_ids(), main(), MetisPartitioner::partition_mesh(), ZoltanPartitioner::partition_mesh_and_geometry(), moab::ReadSms::read_parallel_info(), MetisPartitioner::write_aggregationtag_partition(), MetisPartitioner::write_partition(), and ZoltanPartitioner::write_partition().
string part_file_name |
string test_file_name = string( MESH_DIR ) + string( "/3k-tri-sphere.vtk" ) |
Definition at line 19 of file ReadPartFile.cpp.