Mesh Oriented datABase  (version 5.6.0)
An array-based unstructured mesh library
anonymous_namespace{HelloParMOAB.cpp} Namespace Reference

Functions

void print_usage (const char *program_name)
 
void print_entity_stats (const std::vector< int > &counts, int nprocs, const std::string &title="")
 

Variables

const char *const DEFAULT_MESH_FILE = "/64bricks_512hex_256part.h5m"
 
const char *const DEFAULT_READ_OPTS = "PARALLEL=READ_PART;PARTITION=PARALLEL_PARTITION;PARALLEL_RESOLVE_SHARED_ENTS"
 

Function Documentation

◆ print_entity_stats()

void anonymous_namespace{HelloParMOAB.cpp}::print_entity_stats ( const std::vector< int > &  counts,
int  nprocs,
const std::string &  title = "" 
)
Examples
HelloParMOAB.cpp.

Definition at line 67 of file HelloParMOAB.cpp.

68 {
69  if( !title.empty() )
70  {
71  std::cout << "\n" << title << ":\n";
72  }
73 
74  for( int i = 0; i < nprocs; ++i )
75  {
76  std::cout << " Shared, owned entities on proc " << i << ": " << counts[4 * i] << " verts, "
77  << counts[4 * i + 1] << " edges, " << counts[4 * i + 2] << " faces, " << counts[4 * i + 3]
78  << " elements\n";
79  }
80 }

Referenced by main().

◆ print_usage()

void anonymous_namespace{HelloParMOAB.cpp}::print_usage ( const char *  program_name)
Examples
HelloParMOAB.cpp.

Definition at line 58 of file HelloParMOAB.cpp.

59 {
60  std::cout << "Usage: mpiexec -np <num_procs> " << program_name << " [meshfile] [num_communicators]\n"
61  << "\nOptions:"
62  << "\n meshfile - Path to the mesh file (default: " << MESH_DIR << DEFAULT_MESH_FILE << ")"
63  << "\n num_communicators - Number of MPI communicator groups to create (default: 1)\n";
64 }

References DEFAULT_MESH_FILE, and MESH_DIR.

Referenced by main().

Variable Documentation

◆ DEFAULT_MESH_FILE

const char* const anonymous_namespace{HelloParMOAB.cpp}::DEFAULT_MESH_FILE = "/64bricks_512hex_256part.h5m"
Examples
HelloParMOAB.cpp.

Definition at line 52 of file HelloParMOAB.cpp.

Referenced by main(), and print_usage().

◆ DEFAULT_READ_OPTS

const char* const anonymous_namespace{HelloParMOAB.cpp}::DEFAULT_READ_OPTS = "PARALLEL=READ_PART;PARTITION=PARALLEL_PARTITION;PARALLEL_RESOLVE_SHARED_ENTS"
Examples
HelloParMOAB.cpp.

Definition at line 55 of file HelloParMOAB.cpp.

Referenced by main().