Parallel data in MOAB. More...
#include <ParallelData.hpp>
Public Member Functions | |
ParallelData (Interface *impl, ParallelComm *pcomm=NULL) | |
constructor; if non-null parallelcomm, that is used to determine rank, otherwise rank is taken from impl More... | |
ErrorCode | get_partition_sets (Range &part_sets, const char *tag_name=NULL) |
return partition sets; if tag_name is input, gets sets with that tag name, otherwise uses PARALLEL_PARTITION tag More... | |
ErrorCode | get_interface_sets (std::vector< EntityHandle > &iface_sets, std::vector< int > &iface_procs) |
get communication interface sets and the processors with which this processor communicates; sets are sorted by processor More... | |
Private Attributes | |
Interface * | mbImpl |
interface instance to which this instance corresponds More... | |
ParallelComm * | parallelComm |
ParallelComm object to which this is bound. More... | |
Parallel data in MOAB.
This class implements methods to retrieve information about the parallel mesh from MOAB. Most of this data can be retrieved directly from MOAB as sets and tags; this class provides convenience methods implemented on top of other MOAB functions.
Definition at line 22 of file ParallelData.hpp.
|
inline |
constructor; if non-null parallelcomm, that is used to determine rank, otherwise rank is taken from impl
Definition at line 45 of file ParallelData.hpp.
ErrorCode moab::ParallelData::get_interface_sets | ( | std::vector< EntityHandle > & | iface_sets, |
std::vector< int > & | iface_procs | ||
) |
get communication interface sets and the processors with which this processor communicates; sets are sorted by processor
Definition at line 34 of file ParallelData.cpp.
References moab::Range::begin(), CONTINUE, moab::Range::empty(), moab::Range::end(), ErrorCode, moab::Interface::get_entities_by_type_and_tag(), MAX_SHARING_PROCS, MB_SUCCESS, MB_TYPE_INTEGER, MBENTITYSET, mbImpl, PARALLEL_SHARED_PROC_TAG_NAME, PARALLEL_SHARED_PROCS_TAG_NAME, parallelComm, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_rank(), moab::Range::size(), moab::Interface::tag_get_data(), moab::Interface::tag_get_handle(), moab::Interface::tag_get_length(), and moab::Interface::UNION.
ErrorCode moab::ParallelData::get_partition_sets | ( | Range & | part_sets, |
const char * | tag_name = NULL |
||
) |
return partition sets; if tag_name is input, gets sets with that tag name, otherwise uses PARALLEL_PARTITION tag
Definition at line 13 of file ParallelData.cpp.
References ErrorCode, moab::Interface::get_entities_by_type_and_tag(), MB_SUCCESS, MB_TAG_NOT_FOUND, MB_TYPE_INTEGER, MBENTITYSET, mbImpl, PARALLEL_PARTITION_TAG_NAME, moab::Interface::tag_get_handle(), and moab::Interface::UNION.
|
private |
interface instance to which this instance corresponds
Definition at line 39 of file ParallelData.hpp.
Referenced by get_interface_sets(), and get_partition_sets().
|
private |
ParallelComm object to which this is bound.
Definition at line 42 of file ParallelData.hpp.
Referenced by get_interface_sets().