Parallel communications in MOAB. More...
#include <ParallelComm.hpp>
Classes | |
class | Buffer |
struct | SharedEntityData |
Public Member Functions | |
ParallelComm (Interface *impl, MPI_Comm comm, int *pcomm_id_out=0) | |
constructor More... | |
ParallelComm (Interface *impl, std::vector< unsigned char > &tmp_buff, MPI_Comm comm, int *pcomm_id_out=0) | |
constructor taking packed buffer, for testing More... | |
int | get_id () const |
Get ID used to reference this PCOMM instance. More... | |
~ParallelComm () | |
destructor More... | |
ErrorCode | assign_global_ids (EntityHandle this_set, const int dimension, const int start_id=1, const bool largest_dim_only=true, const bool parallel=true, const bool owned_only=false) |
assign a global id space, for largest-dimension or all entities (and in either case for vertices too) More... | |
ErrorCode | assign_global_ids (Range entities[], const int dimension, const int start_id, const bool parallel, const bool owned_only) |
assign a global id space, for largest-dimension or all entities (and in either case for vertices too) More... | |
ErrorCode | check_global_ids (EntityHandle this_set, const int dimension, const int start_id=1, const bool largest_dim_only=true, const bool parallel=true, const bool owned_only=false) |
check for global ids; based only on tag handle being there or not; if it's not there, create them for the specified dimensions More... | |
ErrorCode | send_entities (const int to_proc, Range &orig_ents, const bool adjs, const bool tags, const bool store_remote_handles, const bool is_iface, Range &final_ents, int &incoming1, int &incoming2, TupleList &entprocs, std::vector< MPI_Request > &recv_remoteh_reqs, bool wait_all=true) |
send entities to another processor, optionally waiting until it's done More... | |
ErrorCode | send_entities (std::vector< unsigned int > &send_procs, std::vector< Range * > &send_ents, int &incoming1, int &incoming2, const bool store_remote_handles) |
ErrorCode | recv_entities (const int from_proc, const bool store_remote_handles, const bool is_iface, Range &final_ents, int &incomming1, int &incoming2, std::vector< std::vector< EntityHandle > > &L1hloc, std::vector< std::vector< EntityHandle > > &L1hrem, std::vector< std::vector< int > > &L1p, std::vector< EntityHandle > &L2hloc, std::vector< EntityHandle > &L2hrem, std::vector< unsigned int > &L2p, std::vector< MPI_Request > &recv_remoteh_reqs, bool wait_all=true) |
Receive entities from another processor, optionally waiting until it's done. More... | |
ErrorCode | recv_entities (std::set< unsigned int > &recv_procs, int incoming1, int incoming2, const bool store_remote_handles, const bool migrate=false) |
ErrorCode | recv_messages (const int from_proc, const bool store_remote_handles, const bool is_iface, Range &final_ents, int &incoming1, int &incoming2, std::vector< std::vector< EntityHandle > > &L1hloc, std::vector< std::vector< EntityHandle > > &L1hrem, std::vector< std::vector< int > > &L1p, std::vector< EntityHandle > &L2hloc, std::vector< EntityHandle > &L2hrem, std::vector< unsigned int > &L2p, std::vector< MPI_Request > &recv_remoteh_reqs) |
Receive messages from another processor in while loop. More... | |
ErrorCode | recv_remote_handle_messages (const int from_proc, int &incoming2, std::vector< EntityHandle > &L2hloc, std::vector< EntityHandle > &L2hrem, std::vector< unsigned int > &L2p, std::vector< MPI_Request > &recv_remoteh_reqs) |
ErrorCode | exchange_ghost_cells (int ghost_dim, int bridge_dim, int num_layers, int addl_ents, bool store_remote_handles, bool wait_all=true, EntityHandle *file_set=NULL) |
Exchange ghost cells with neighboring procs Neighboring processors are those sharing an interface with this processor. All entities of dimension ghost_dim within num_layers of interface, measured going through bridge_dim, are exchanged. See MeshTopoUtil::get_bridge_adjacencies for description of bridge adjacencies. If wait_all is false and store_remote_handles is true, MPI_Request objects are available in the sendReqs[2*MAX_SHARING_PROCS] member array, with inactive requests marked as MPI_REQUEST_NULL. If store_remote_handles or wait_all is false, this function returns after all entities have been received and processed. More... | |
ErrorCode | post_irecv (std::vector< unsigned int > &exchange_procs) |
Post "MPI_Irecv" before meshing. More... | |
ErrorCode | post_irecv (std::vector< unsigned int > &shared_procs, std::set< unsigned int > &recv_procs) |
ErrorCode | exchange_owned_meshs (std::vector< unsigned int > &exchange_procs, std::vector< Range * > &exchange_ents, std::vector< MPI_Request > &recv_ent_reqs, std::vector< MPI_Request > &recv_remoteh_reqs, bool store_remote_handles, bool wait_all=true, bool migrate=false, int dim=0) |
Exchange owned mesh for input mesh entities and sets This function should be called collectively over the communicator for this ParallelComm. If this version is called, all shared exchanged entities should have a value for this tag (or the tag should have a default value). More... | |
ErrorCode | exchange_owned_mesh (std::vector< unsigned int > &exchange_procs, std::vector< Range * > &exchange_ents, std::vector< MPI_Request > &recv_ent_reqs, std::vector< MPI_Request > &recv_remoteh_reqs, const bool recv_posted, bool store_remote_handles, bool wait_all, bool migrate=false) |
Exchange owned mesh for input mesh entities and sets This function is called twice by exchange_owned_meshs to exchange entities before sets. More... | |
ErrorCode | exchange_tags (const std::vector< Tag > &src_tags, const std::vector< Tag > &dst_tags, const Range &entities) |
Exchange tags for all shared and ghosted entities This function should be called collectively over the communicator for this ParallelComm. If this version is called, all ghosted/shared entities should have a value for this tag (or the tag should have a default value). If the entities vector is empty, all shared entities participate in the exchange. If a proc has no owned entities this function must still be called since it is collective. More... | |
ErrorCode | exchange_tags (const char *tag_name, const Range &entities) |
Exchange tags for all shared and ghosted entities This function should be called collectively over the communicator for this ParallelComm. If the entities vector is empty, all shared entities participate in the exchange. If a proc has no owned entities this function must still be called since it is collective. More... | |
ErrorCode | exchange_tags (Tag tagh, const Range &entities) |
Exchange tags for all shared and ghosted entities This function should be called collectively over the communicator for this ParallelComm. If the entities vector is empty, all shared entities participate in the exchange. If a proc has no owned entities this function must still be called since it is collective. More... | |
ErrorCode | reduce_tags (const std::vector< Tag > &src_tags, const std::vector< Tag > &dst_tags, const MPI_Op mpi_op, const Range &entities) |
Perform data reduction operation for all shared and ghosted entities This function should be called collectively over the communicator for this ParallelComm. If this version is called, all ghosted/shared entities should have a value for this tag (or the tag should have a default value). Operation is any MPI_Op, with result stored in destination tag. More... | |
ErrorCode | reduce_tags (const char *tag_name, const MPI_Op mpi_op, const Range &entities) |
Perform data reduction operation for all shared and ghosted entities Same as std::vector variant except for one tag specified by name. More... | |
ErrorCode | reduce_tags (Tag tag_handle, const MPI_Op mpi_op, const Range &entities) |
Perform data reduction operation for all shared and ghosted entities Same as std::vector variant except for one tag specified by handle. More... | |
ErrorCode | broadcast_entities (const int from_proc, Range &entities, const bool adjacencies=false, const bool tags=true) |
Broadcast all entities resident on from_proc to other processors This function assumes remote handles are not being stored, since (usually) every processor will know about the whole mesh. More... | |
ErrorCode | scatter_entities (const int from_proc, std::vector< Range > &entities, const bool adjacencies=false, const bool tags=true) |
Scatter entities on from_proc to other processors This function assumes remote handles are not being stored, since (usually) every processor will know about the whole mesh. More... | |
ErrorCode | send_recv_entities (std::vector< int > &send_procs, std::vector< std::vector< int > > &msgsizes, std::vector< std::vector< EntityHandle > > &senddata, std::vector< std::vector< EntityHandle > > &recvdata) |
Send and receives data from a set of processors. More... | |
ErrorCode | update_remote_data (EntityHandle entity, std::vector< int > &procs, std::vector< EntityHandle > &handles) |
ErrorCode | get_remote_handles (EntityHandle *local_vec, EntityHandle *rem_vec, int num_ents, int to_proc) |
ErrorCode | resolve_shared_ents (EntityHandle this_set, Range &proc_ents, int resolve_dim=-1, int shared_dim=-1, Range *skin_ents=NULL, const Tag *id_tag=0) |
Resolve shared entities between processors. More... | |
ErrorCode | resolve_shared_ents (EntityHandle this_set, int resolve_dim=3, int shared_dim=-1, const Tag *id_tag=0) |
Resolve shared entities between processors. More... | |
ErrorCode | resolve_shared_sets (EntityHandle this_set, const Tag *id_tag=0) |
ErrorCode | resolve_shared_sets (Range &candidate_sets, Tag id_tag) |
ErrorCode | augment_default_sets_with_ghosts (EntityHandle file_set) |
ErrorCode | get_pstatus (EntityHandle entity, unsigned char &pstatus_val) |
Get parallel status of an entity Returns the parallel status of an entity. More... | |
ErrorCode | get_pstatus_entities (int dim, unsigned char pstatus_val, Range &pstatus_ents) |
Get entities with the given pstatus bit(s) set Returns any entities whose pstatus tag value v satisfies (v & pstatus_val) More... | |
ErrorCode | get_owner (EntityHandle entity, int &owner) |
Return the rank of the entity owner. More... | |
ErrorCode | get_owner_handle (EntityHandle entity, int &owner, EntityHandle &handle) |
Return the owner processor and handle of a given entity. More... | |
ErrorCode | get_sharing_data (const EntityHandle entity, int *ps, EntityHandle *hs, unsigned char &pstat, unsigned int &num_ps) |
Get the shared processors/handles for an entity Get the shared processors/handles for an entity. Arrays must be large enough to receive data for all sharing procs. Does not include this proc if only shared with one other proc. More... | |
ErrorCode | get_sharing_data (const EntityHandle entity, int *ps, EntityHandle *hs, unsigned char &pstat, int &num_ps) |
Get the shared processors/handles for an entity Same as other version but with int num_ps. More... | |
ErrorCode | get_sharing_data (const EntityHandle *entities, int num_entities, std::set< int > &procs, int op=Interface::INTERSECT) |
Get the intersection or union of all sharing processors Get the intersection or union of all sharing processors. Processor set is cleared as part of this function. More... | |
ErrorCode | get_sharing_data (const Range &entities, std::set< int > &procs, int op=Interface::INTERSECT) |
Get the intersection or union of all sharing processors Same as previous variant but with range as input. More... | |
ErrorCode | get_shared_entities (int other_proc, Range &shared_ents, int dim=-1, const bool iface=false, const bool owned_filter=false) |
Get shared entities of specified dimension If other_proc is -1, any shared entities are returned. If dim is -1, entities of all dimensions on interface are returned. More... | |
ErrorCode | get_interface_procs (std::set< unsigned int > &iface_procs, const bool get_buffs=false) |
get processors with which this processor shares an interface More... | |
ErrorCode | get_comm_procs (std::set< unsigned int > &procs) |
get processors with which this processor communicates More... | |
ErrorCode | get_entityset_procs (EntityHandle entity_set, std::vector< unsigned > &ranks) const |
Get array of process IDs sharing a set. Returns zero and passes back NULL if set is not shared. More... | |
ErrorCode | get_entityset_owner (EntityHandle entity_set, unsigned &owner_rank, EntityHandle *remote_handle=0) const |
Get rank of the owner of a shared set. Returns this proc if set is not shared. Optionally returns handle on owning process for shared set. More... | |
ErrorCode | get_entityset_local_handle (unsigned owning_rank, EntityHandle remote_handle, EntityHandle &local_handle) const |
Given set owner and handle on owner, find local set handle. More... | |
ErrorCode | get_shared_sets (Range &result) const |
Get all shared sets. More... | |
ErrorCode | get_entityset_owners (std::vector< unsigned > &ranks) const |
Get ranks of all processes that own at least one set that is shared with this process. Will include the rank of this process if this process owns any shared set. More... | |
ErrorCode | get_owned_sets (unsigned owning_rank, Range &sets_out) const |
Get shared sets owned by process with specified rank. More... | |
const ProcConfig & | proc_config () const |
Get proc config for this communication object. More... | |
ProcConfig & | proc_config () |
Get proc config for this communication object. More... | |
unsigned | rank () const |
unsigned | size () const |
MPI_Comm | comm () const |
ErrorCode | get_shared_proc_tags (Tag &sharedp_tag, Tag &sharedps_tag, Tag &sharedh_tag, Tag &sharedhs_tag, Tag &pstatus_tag) |
return the tags used to indicate shared procs and handles More... | |
Range & | partition_sets () |
return partition, interface set ranges More... | |
const Range & | partition_sets () const |
Range & | interface_sets () |
const Range & | interface_sets () const |
Tag | sharedp_tag () |
return sharedp tag More... | |
Tag | sharedps_tag () |
return sharedps tag More... | |
Tag | sharedh_tag () |
return sharedh tag More... | |
Tag | sharedhs_tag () |
return sharedhs tag More... | |
Tag | pstatus_tag () |
return pstatus tag More... | |
Tag | partition_tag () |
return partitions set tag More... | |
Tag | part_tag () |
void | print_pstatus (unsigned char pstat, std::string &ostr) |
print contents of pstatus value in human-readable form More... | |
void | print_pstatus (unsigned char pstat) |
print contents of pstatus value in human-readable form to std::cut More... | |
ErrorCode | get_part_entities (Range &ents, int dim=-1) |
return all the entities in parts owned locally More... | |
EntityHandle | get_partitioning () const |
ErrorCode | set_partitioning (EntityHandle h) |
ErrorCode | get_global_part_count (int &count_out) const |
ErrorCode | get_part_owner (int part_id, int &owner_out) const |
ErrorCode | get_part_id (EntityHandle part, int &id_out) const |
ErrorCode | get_part_handle (int id, EntityHandle &handle_out) const |
ErrorCode | create_part (EntityHandle &part_out) |
ErrorCode | destroy_part (EntityHandle part) |
ErrorCode | collective_sync_partition () |
ErrorCode | get_part_neighbor_ids (EntityHandle part, int neighbors_out[MAX_SHARING_PROCS], int &num_neighbors_out) |
ErrorCode | get_interface_sets (EntityHandle part, Range &iface_sets_out, int *adj_part_id=0) |
ErrorCode | get_owning_part (EntityHandle entity, int &owning_part_id_out, EntityHandle *owning_handle=0) |
ErrorCode | get_sharing_parts (EntityHandle entity, int part_ids_out[MAX_SHARING_PROCS], int &num_part_ids_out, EntityHandle remote_handles[MAX_SHARING_PROCS]=0) |
ErrorCode | filter_pstatus (Range &ents, const unsigned char pstatus_val, const unsigned char op, int to_proc=-1, Range *returned_ents=NULL) |
ErrorCode | get_iface_entities (int other_proc, int dim, Range &iface_ents) |
Get entities on interfaces shared with another proc. More... | |
Interface * | get_moab () const |
ErrorCode | clean_shared_tags (std::vector< Range * > &exchange_ents) |
ErrorCode | pack_buffer (Range &orig_ents, const bool adjacencies, const bool tags, const bool store_remote_handles, const int to_proc, Buffer *buff, TupleList *entprocs=NULL, Range *allsent=NULL) |
public 'cuz we want to unit test these externally More... | |
ErrorCode | unpack_buffer (unsigned char *buff_ptr, const bool store_remote_handles, const int from_proc, const int ind, std::vector< std::vector< EntityHandle > > &L1hloc, std::vector< std::vector< EntityHandle > > &L1hrem, std::vector< std::vector< int > > &L1p, std::vector< EntityHandle > &L2hloc, std::vector< EntityHandle > &L2hrem, std::vector< unsigned int > &L2p, std::vector< EntityHandle > &new_ents, const bool created_iface=false) |
ErrorCode | pack_entities (Range &entities, Buffer *buff, const bool store_remote_handles, const int to_proc, const bool is_iface, TupleList *entprocs=NULL, Range *allsent=NULL) |
ErrorCode | unpack_entities (unsigned char *&buff_ptr, const bool store_remote_handles, const int from_ind, const bool is_iface, std::vector< std::vector< EntityHandle > > &L1hloc, std::vector< std::vector< EntityHandle > > &L1hrem, std::vector< std::vector< int > > &L1p, std::vector< EntityHandle > &L2hloc, std::vector< EntityHandle > &L2hrem, std::vector< unsigned int > &L2p, std::vector< EntityHandle > &new_ents, const bool created_iface=false) |
unpack entities in buff_ptr More... | |
ErrorCode | check_all_shared_handles (bool print_em=false) |
Call exchange_all_shared_handles, then compare the results with tag data on local shared entities. More... | |
ErrorCode | pack_shared_handles (std::vector< std::vector< SharedEntityData > > &send_data) |
ErrorCode | check_local_shared () |
ErrorCode | check_my_shared_handles (std::vector< std::vector< SharedEntityData > > &shents, const char *prefix=NULL) |
void | set_rank (unsigned int r) |
set rank for this pcomm; USED FOR TESTING ONLY! More... | |
void | set_size (unsigned int r) |
set rank for this pcomm; USED FOR TESTING ONLY! More... | |
int | get_buffers (int to_proc, bool *is_new=NULL) |
get (and possibly allocate) buffers for messages to/from to_proc; returns index of to_proc in buffProcs vector; if is_new is non-NULL, sets to whether new buffer was allocated PUBLIC ONLY FOR TESTING! More... | |
const std::vector< unsigned int > & | buff_procs () const |
get buff processor vector More... | |
ErrorCode | unpack_remote_handles (unsigned int from_proc, unsigned char *&buff_ptr, std::vector< EntityHandle > &L2hloc, std::vector< EntityHandle > &L2hrem, std::vector< unsigned int > &L2p) |
ErrorCode | pack_remote_handles (std::vector< EntityHandle > &L1hloc, std::vector< EntityHandle > &L1hrem, std::vector< int > &procs, unsigned int to_proc, Buffer *buff) |
ErrorCode | create_interface_sets (std::map< std::vector< int >, std::vector< EntityHandle > > &proc_nvecs) |
ErrorCode | create_interface_sets (EntityHandle this_set, int resolve_dim, int shared_dim) |
ErrorCode | tag_shared_verts (TupleList &shared_ents, std::map< std::vector< int >, std::vector< EntityHandle > > &proc_nvecs, Range &proc_verts, unsigned int i_extra=1) |
ErrorCode | list_entities (const EntityHandle *ents, int num_ents) |
ErrorCode | list_entities (const Range &ents) |
void | set_send_request (int n_request) |
void | set_recv_request (int n_request) |
void | reset_all_buffers () |
reset message buffers to their initial state More... | |
void | set_debug_verbosity (int verb) |
set the verbosity level of output from this pcomm More... | |
int | get_debug_verbosity () |
get the verbosity level of output from this pcomm More... | |
ErrorCode | gather_data (Range &gather_ents, Tag &tag_handle, Tag id_tag=0, EntityHandle gather_set=0, int root_proc_rank=0) |
ErrorCode | settle_intersection_points (Range &edges, Range &shared_edges_owned, std::vector< std::vector< EntityHandle > * > &extraNodesVec, double tolerance) |
ErrorCode | delete_entities (Range &to_delete) |
ErrorCode | correct_thin_ghost_layers () |
Static Public Member Functions | |
static ParallelComm * | get_pcomm (Interface *impl, const int index) |
get the indexed pcomm object from the interface More... | |
static ParallelComm * | get_pcomm (Interface *impl, EntityHandle partitioning, const MPI_Comm *comm=0) |
Get ParallelComm instance associated with partition handle Will create ParallelComm instance if a) one does not already exist and b) a valid value for MPI_Comm is passed. More... | |
static ErrorCode | get_all_pcomm (Interface *impl, std::vector< ParallelComm * > &list) |
static ErrorCode | exchange_ghost_cells (ParallelComm **pc, unsigned int num_procs, int ghost_dim, int bridge_dim, int num_layers, int addl_ents, bool store_remote_handles, EntityHandle *file_sets=NULL) |
Static version of exchange_ghost_cells, exchanging info through buffers rather than messages. More... | |
static ErrorCode | resolve_shared_ents (ParallelComm **pc, const unsigned int np, EntityHandle this_set, const int to_dim) |
static Tag | pcomm_tag (Interface *impl, bool create_if_missing=true) |
return pcomm tag; static because might not have a pcomm before going to look for one on the interface More... | |
static ErrorCode | check_all_shared_handles (ParallelComm **pcs, int num_pcs) |
Static Public Attributes | |
static unsigned char | PROC_SHARED |
static unsigned char | PROC_OWNER |
static const unsigned int | INITIAL_BUFF_SIZE = 1024 |
Private Member Functions | |
ErrorCode | reduce_void (int tag_data_type, const MPI_Op mpi_op, int num_ents, void *old_vals, void *new_vals) |
template<class T > | |
ErrorCode | reduce (const MPI_Op mpi_op, int num_ents, void *old_vals, void *new_vals) |
void | print_debug_isend (int from, int to, unsigned char *buff, int tag, int size) |
void | print_debug_irecv (int to, int from, unsigned char *buff, int size, int tag, int incoming) |
void | print_debug_recd (MPI_Status status) |
void | print_debug_waitany (std::vector< MPI_Request > &reqs, int tag, int proc) |
void | initialize () |
ErrorCode | set_sharing_data (EntityHandle ent, unsigned char pstatus, int old_nump, int new_nump, int *ps, EntityHandle *hs) |
ErrorCode | check_clean_iface (Range &allsent) |
void | define_mpe () |
ErrorCode | get_sent_ents (const bool is_iface, const int bridge_dim, const int ghost_dim, const int num_layers, const int addl_ents, Range *sent_ents, Range &allsent, TupleList &entprocs) |
ErrorCode | set_pstatus_entities (Range &pstatus_ents, unsigned char pstatus_val, bool lower_dim_ents=false, bool verts_too=true, int operation=Interface::UNION) |
Set pstatus values on entities. More... | |
ErrorCode | set_pstatus_entities (EntityHandle *pstatus_ents, int num_ents, unsigned char pstatus_val, bool lower_dim_ents=false, bool verts_too=true, int operation=Interface::UNION) |
Set pstatus values on entities (vector-based function) More... | |
int | estimate_ents_buffer_size (Range &entities, const bool store_remote_handles) |
estimate size required to pack entities More... | |
int | estimate_sets_buffer_size (Range &entities, const bool store_remote_handles) |
estimate size required to pack sets More... | |
ErrorCode | send_buffer (const unsigned int to_proc, Buffer *send_buff, const int msg_tag, MPI_Request &send_req, MPI_Request &ack_recv_req, int *ack_buff, int &this_incoming, int next_mesg_tag=-1, Buffer *next_recv_buff=NULL, MPI_Request *next_recv_req=NULL, int *next_incoming=NULL) |
send the indicated buffer, possibly sending size first More... | |
ErrorCode | recv_buffer (int mesg_tag_expected, const MPI_Status &mpi_status, Buffer *recv_buff, MPI_Request &recv_2nd_req, MPI_Request &ack_req, int &this_incoming, Buffer *send_buff, MPI_Request &send_req, MPI_Request &sent_ack_req, bool &done, Buffer *next_buff=NULL, int next_tag=-1, MPI_Request *next_req=NULL, int *next_incoming=NULL) |
process incoming message; if longer than the initial size, post recv for next part then send ack; if ack, send second part; else indicate that we're done and buffer is ready for processing More... | |
ErrorCode | pack_entity_seq (const int nodes_per_entity, const bool store_remote_handles, const int to_proc, Range &these_ents, std::vector< EntityHandle > &entities, Buffer *buff) |
pack a range of entities with equal # verts per entity, along with the range on the sending proc More... | |
ErrorCode | print_buffer (unsigned char *buff_ptr, int mesg_type, int from_proc, bool sent) |
ErrorCode | unpack_iface_entities (unsigned char *&buff_ptr, const int from_proc, const int ind, std::vector< EntityHandle > &recd_ents) |
for all the entities in the received buffer; for each, save entities in this instance which match connectivity, or zero if none found More... | |
ErrorCode | pack_sets (Range &entities, Buffer *buff, const bool store_handles, const int to_proc) |
ErrorCode | unpack_sets (unsigned char *&buff_ptr, std::vector< EntityHandle > &entities, const bool store_handles, const int to_proc) |
ErrorCode | pack_adjacencies (Range &entities, Range::const_iterator &start_rit, Range &whole_range, unsigned char *&buff_ptr, int &count, const bool just_count, const bool store_handles, const int to_proc) |
ErrorCode | unpack_adjacencies (unsigned char *&buff_ptr, Range &entities, const bool store_handles, const int from_proc) |
ErrorCode | unpack_remote_handles (unsigned int from_proc, const unsigned char *buff_ptr, std::vector< EntityHandle > &L2hloc, std::vector< EntityHandle > &L2hrem, std::vector< unsigned int > &L2p) |
ErrorCode | find_existing_entity (const bool is_iface, const int owner_p, const EntityHandle owner_h, const int num_ents, const EntityHandle *connect, const int num_connect, const EntityType this_type, std::vector< EntityHandle > &L2hloc, std::vector< EntityHandle > &L2hrem, std::vector< unsigned int > &L2p, EntityHandle &new_h) |
given connectivity and type, find an existing entity, if there is one More... | |
ErrorCode | build_sharedhps_list (const EntityHandle entity, const unsigned char pstatus, const int sharedp, const std::set< unsigned int > &procs, unsigned int &num_ents, int *tmp_procs, EntityHandle *tmp_handles) |
ErrorCode | get_tag_send_list (const Range &all_entities, std::vector< Tag > &all_tags, std::vector< Range > &tag_ranges) |
Get list of tags for which to exchange data. More... | |
ErrorCode | pack_tags (Range &entities, const std::vector< Tag > &src_tags, const std::vector< Tag > &dst_tags, const std::vector< Range > &tag_ranges, Buffer *buff, const bool store_handles, const int to_proc) |
Serialize entity tag data. More... | |
ErrorCode | packed_tag_size (Tag source_tag, const Range &entities, int &count_out) |
Calculate buffer size required to pack tag data. More... | |
ErrorCode | pack_tag (Tag source_tag, Tag destination_tag, const Range &entities, const std::vector< EntityHandle > &whole_range, Buffer *buff, const bool store_remote_handles, const int to_proc) |
Serialize tag data. More... | |
ErrorCode | unpack_tags (unsigned char *&buff_ptr, std::vector< EntityHandle > &entities, const bool store_handles, const int to_proc, const MPI_Op *const mpi_op=NULL) |
ErrorCode | tag_shared_verts (TupleList &shared_verts, Range *skin_ents, std::map< std::vector< int >, std::vector< EntityHandle > > &proc_nvecs, Range &proc_verts) |
ErrorCode | get_proc_nvecs (int resolve_dim, int shared_dim, Range *skin_ents, std::map< std::vector< int >, std::vector< EntityHandle > > &proc_nvecs) |
ErrorCode | create_iface_pc_links () |
ErrorCode | pack_range_map (Range &this_range, EntityHandle actual_start, HandleMap &handle_map) |
pack a range map with keys in this_range and values a contiguous series of handles starting at actual_start More... | |
bool | is_iface_proc (EntityHandle this_set, int to_proc) |
returns true if the set is an interface shared with to_proc More... | |
ErrorCode | update_iface_sets (Range &sent_ents, std::vector< EntityHandle > &remote_handles, int from_proc) |
for any remote_handles set to zero, remove corresponding sent_ents from iface_sets corresponding to from_proc More... | |
ErrorCode | get_ghosted_entities (int bridge_dim, int ghost_dim, int to_proc, int num_layers, int addl_ents, Range &ghosted_ents) |
for specified bridge/ghost dimension, to_proc, and number of layers, get the entities to be ghosted, and info on additional procs needing to communicate with to_proc More... | |
ErrorCode | add_verts (Range &sent_ents) |
add vertices adjacent to entities in this list More... | |
ErrorCode | exchange_all_shared_handles (std::vector< std::vector< SharedEntityData > > &send_data, std::vector< std::vector< SharedEntityData > > &result) |
Every processor sends shared entity handle data to every other processor that it shares entities with. Passed back map is all received data, indexed by processor ID. This function is intended to be used for debugging. More... | |
ErrorCode | get_remote_handles (const bool store_remote_handles, EntityHandle *from_vec, EntityHandle *to_vec_tmp, int num_ents, int to_proc, const std::vector< EntityHandle > &new_ents) |
replace handles in from_vec with corresponding handles on to_proc (by checking shared[p/h]_tag and shared[p/h]s_tag; if no remote handle and new_ents is non-null, substitute instead CREATE_HANDLE(MBMAXTYPE, index) where index is handle's position in new_ents More... | |
ErrorCode | get_remote_handles (const bool store_remote_handles, const Range &from_range, Range &to_range, int to_proc, const std::vector< EntityHandle > &new_ents) |
same as other version, except from_range and to_range should be different here More... | |
ErrorCode | get_remote_handles (const bool store_remote_handles, const Range &from_range, EntityHandle *to_vec, int to_proc, const std::vector< EntityHandle > &new_ents) |
same as other version, except packs range into vector More... | |
ErrorCode | get_local_handles (EntityHandle *from_vec, int num_ents, const Range &new_ents) |
goes through from_vec, and for any with type MBMAXTYPE, replaces with new_ents value at index corresponding to id of entity in from_vec More... | |
ErrorCode | get_local_handles (const Range &remote_handles, Range &local_handles, const std::vector< EntityHandle > &new_ents) |
same as above except puts results in range More... | |
ErrorCode | get_local_handles (EntityHandle *from_vec, int num_ents, const std::vector< EntityHandle > &new_ents) |
same as above except gets new_ents from vector More... | |
ErrorCode | update_remote_data (Range &local_range, Range &remote_range, int other_proc, const unsigned char add_pstat) |
ErrorCode | update_remote_data (const EntityHandle new_h, const int *ps, const EntityHandle *hs, const int num_ps, const unsigned char add_pstat) |
ErrorCode | update_remote_data_old (const EntityHandle new_h, const int *ps, const EntityHandle *hs, const int num_ps, const unsigned char add_pstat) |
ErrorCode | tag_iface_entities () |
Set pstatus tag interface bit on entities in sets passed in. More... | |
int | add_pcomm (ParallelComm *pc) |
add a pc to the iface instance tag PARALLEL_COMM More... | |
void | remove_pcomm (ParallelComm *pc) |
remove a pc from the iface instance tag PARALLEL_COMM More... | |
ErrorCode | check_sent_ents (Range &allsent) |
check entities to make sure there are no zero-valued remote handles where they shouldn't be More... | |
ErrorCode | assign_entities_part (std::vector< EntityHandle > &entities, const int proc) |
assign entities to the input processor part More... | |
ErrorCode | remove_entities_part (Range &entities, const int proc) |
remove entities to the input processor part More... | |
void | delete_all_buffers () |
reset message buffers to their initial state More... | |
Private Attributes | |
Interface * | mbImpl |
MB interface associated with this writer. More... | |
ProcConfig | procConfig |
Proc config object, keeps info on parallel stuff. More... | |
SequenceManager * | sequenceManager |
Sequence manager, to get more efficient access to entities. More... | |
Error * | errorHandler |
Error handler. More... | |
std::vector< Buffer * > | localOwnedBuffs |
more data buffers, proc-specific More... | |
std::vector< Buffer * > | remoteOwnedBuffs |
std::vector< MPI_Request > | sendReqs |
request objects, may be used if store_remote_handles is used More... | |
std::vector< MPI_Request > | recvReqs |
receive request objects More... | |
std::vector< MPI_Request > | recvRemotehReqs |
std::vector< unsigned int > | buffProcs |
processor rank for each buffer index More... | |
Range | partitionSets |
the partition, interface sets for this comm'n instance More... | |
Range | interfaceSets |
std::set< EntityHandle > | sharedEnts |
all local entities shared with others, whether ghost or ghosted More... | |
Tag | sharedpTag |
tags used to save sharing procs and handles More... | |
Tag | sharedpsTag |
Tag | sharedhTag |
Tag | sharedhsTag |
Tag | pstatusTag |
Tag | ifaceSetsTag |
Tag | partitionTag |
int | globalPartCount |
Cache of global part count. More... | |
EntityHandle | partitioningSet |
entity set containing all parts More... | |
std::ofstream | myFile |
int | pcommID |
int | ackbuff |
DebugOutput * | myDebug |
used to set verbosity level and to report output More... | |
SharedSetData * | sharedSetData |
Data about shared sets. More... | |
Friends | |
class | ParallelMergeMesh |
Parallel communications in MOAB.
This class implements methods to communicate mesh between processors
Definition at line 54 of file ParallelComm.hpp.
moab::ParallelComm::ParallelComm | ( | Interface * | impl, |
MPI_Comm | comm, | ||
int * | pcomm_id_out = 0 |
||
) |
constructor
Definition at line 313 of file ParallelComm.cpp.
References initialize(), pcommID, moab::ProcConfig::proc_rank(), procConfig, and sharedSetData.
Referenced by get_pcomm().
moab::ParallelComm::ParallelComm | ( | Interface * | impl, |
std::vector< unsigned char > & | tmp_buff, | ||
MPI_Comm | comm, | ||
int * | pcomm_id_out = 0 |
||
) |
constructor taking packed buffer, for testing
Definition at line 323 of file ParallelComm.cpp.
References initialize(), pcommID, moab::ProcConfig::proc_rank(), procConfig, and sharedSetData.
moab::ParallelComm::~ParallelComm | ( | ) |
destructor
Definition at line 333 of file ParallelComm.cpp.
References delete_all_buffers(), myDebug, remove_pcomm(), and sharedSetData.
|
private |
add a pc to the iface instance tag PARALLEL_COMM
Definition at line 374 of file ParallelComm.cpp.
References ErrorCode, MAX_SHARING_PROCS, MB_SUCCESS, MB_TAG_NOT_FOUND, mbImpl, pcomm_tag(), moab::Interface::tag_get_data(), and moab::Interface::tag_set_data().
Referenced by initialize().
add vertices adjacent to entities in this list
Definition at line 7502 of file ParallelComm.cpp.
References moab::Range::begin(), moab::Range::equal_range(), ErrorCode, moab::Interface::get_adjacencies(), moab::Interface::get_connectivity(), moab::Interface::get_entities_by_type(), MB_CHK_SET_ERR, MB_SUCCESS, MBENTITYSET, mbImpl, MBPOLYHEDRON, MBVERTEX, moab::Range::subset_by_type(), and moab::Interface::UNION.
Referenced by broadcast_entities(), exchange_owned_mesh(), get_ghosted_entities(), scatter_entities(), and send_entities().
|
private |
assign entities to the input processor part
Definition at line 7297 of file ParallelComm.cpp.
References moab::Interface::add_entities(), entities, ErrorCode, get_part_handle(), MB_CHK_SET_ERR, MB_SUCCESS, and mbImpl.
Referenced by exchange_owned_mesh(), and recv_entities().
ErrorCode moab::ParallelComm::assign_global_ids | ( | EntityHandle | this_set, |
const int | dimension, | ||
const int | start_id = 1 , |
||
const bool | largest_dim_only = true , |
||
const bool | parallel = true , |
||
const bool | owned_only = false |
||
) |
assign a global id space, for largest-dimension or all entities (and in either case for vertices too)
Assign a global id space, for largest-dimension or all entities (and in either case for vertices too)
owned_only | If true, do not get global IDs for non-owned entities from remote processors. |
Definition at line 421 of file ParallelComm.cpp.
References dim, entities, ErrorCode, moab::Interface::get_entities_by_dimension(), moab::Range::insert(), MB_CHK_SET_ERR, mbImpl, PSTATUS_NOT_OWNED, pstatus_tag(), size(), moab::subtract(), and moab::Interface::tag_get_data().
Referenced by check_global_ids(), compute_dual_mesh(), moab::NCHelperDomain::create_mesh(), moab::NCHelperScrip::create_mesh(), main(), and resolve_shared_ents().
ErrorCode moab::ParallelComm::assign_global_ids | ( | Range | entities[], |
const int | dimension, | ||
const int | start_id, | ||
const bool | parallel, | ||
const bool | owned_only | ||
) |
assign a global id space, for largest-dimension or all entities (and in either case for vertices too)
Assign a global id space, for largest-dimension or all entities (and in either case for vertices too)
Definition at line 455 of file ParallelComm.cpp.
References dim, entities, ErrorCode, exchange_tags(), moab::Interface::globalId_tag(), MB_CHK_SET_ERR, MB_SUCCESS, mbImpl, moab::ProcConfig::proc_comm(), moab::ProcConfig::proc_rank(), moab::ProcConfig::proc_size(), procConfig, size(), and moab::Interface::tag_set_data().
ErrorCode moab::ParallelComm::augment_default_sets_with_ghosts | ( | EntityHandle | file_set | ) |
extend shared sets with ghost entities After ghosting, ghost entities do not have yet information about the material set, partition set, Neumann or Dirichlet set they could belong to This method will assign ghosted entities to the those special entity sets In some case we might even have to create those sets, if they do not exist yet on the local processor
The special entity sets all have an unique identifier, in a form of an integer tag to the set. The shared sets data is not used, because we do not use the geometry sets, as they are not uniquely identified
file_set | : file set used per application |
Definition at line 4766 of file ParallelComm.cpp.
References moab::Interface::add_entities(), moab::Interface::contains_entities(), moab::Interface::create_meshset(), moab::ProcConfig::crystal_router(), DIRICHLET_SET_TAG_NAME, moab::TupleList::enableWriteAccess(), ErrorCode, get_debug_verbosity(), moab::Interface::get_entities_by_type_and_tag(), moab::TupleList::get_max(), moab::TupleList::get_n(), get_sharing_data(), moab::Interface::globalId_tag(), moab::TupleList::inc_n(), moab::TupleList::initialize(), MATERIAL_SET_TAG_NAME, MAX_SHARING_PROCS, MB_CHK_SET_ERR, MB_SUCCESS, MB_TAG_ANY, MB_TYPE_INTEGER, MBENTITYSET, mbImpl, MESHSET_SET, NEUMANN_SET_TAG_NAME, PARALLEL_PARTITION_TAG_NAME, moab::TupleList::print(), moab::ProcConfig::proc_comm(), moab::ProcConfig::proc_size(), procConfig, PSTATUS_NOT_OWNED, rank(), moab::TupleList::resize(), sharedEnts, moab::Range::size(), size(), moab::Interface::tag_get_data(), moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), moab::Interface::UNION, moab::TupleList::vi_rd, moab::TupleList::vi_wr, moab::TupleList::vul_rd, and moab::TupleList::vul_wr.
Referenced by moab::ReadParallel::load_file().
ErrorCode moab::ParallelComm::broadcast_entities | ( | const int | from_proc, |
Range & | entities, | ||
const bool | adjacencies = false , |
||
const bool | tags = true |
||
) |
Broadcast all entities resident on from_proc to other processors This function assumes remote handles are not being stored, since (usually) every processor will know about the whole mesh.
from_proc | Processor having the mesh to be broadcast |
entities | On return, the entities sent or received in this call |
adjacencies | If true, adjacencies are sent for equiv entities (currently unsupported) |
tags | If true, all non-default-valued tags are sent for sent entities |
Definition at line 536 of file ParallelComm.cpp.
References add_verts(), moab::ParallelComm::Buffer::buff_ptr, entities, ErrorCode, INITIAL_BUFF_SIZE, moab::MAX_BCAST_SIZE, MB_CHK_SET_ERR, MB_SET_ERR, MB_SUCCESS, moab::ParallelComm::Buffer::mem_ptr, pack_buffer(), moab::ProcConfig::proc_comm(), moab::ProcConfig::proc_rank(), procConfig, moab::ParallelComm::Buffer::reserve(), moab::ParallelComm::Buffer::reset_ptr(), moab::ParallelComm::Buffer::set_stored_size(), and unpack_buffer().
Referenced by moab::ReadParallel::load_file().
|
inline |
|
private |
Definition at line 1748 of file ParallelComm.cpp.
References ErrorCode, get_sharing_data(), list_entities(), MAX_SHARING_PROCS, MB_CHK_SET_ERR, MB_SUCCESS, moab::ProcConfig::proc_rank(), procConfig, PSTATUS_MULTISHARED, PSTATUS_NOT_OWNED, and PSTATUS_SHARED.
Referenced by pack_entities().
ErrorCode moab::ParallelComm::check_all_shared_handles | ( | bool | print_em = false | ) |
Call exchange_all_shared_handles, then compare the results with tag data on local shared entities.
Definition at line 8541 of file ParallelComm.cpp.
References buffProcs, check_local_shared(), check_my_shared_handles(), ErrorCode, exchange_all_shared_handles(), MB_SUCCESS, mbImpl, pack_shared_handles(), moab::ProcConfig::proc_rank(), procConfig, and moab::Interface::write_mesh().
Referenced by exchange_ghost_cells(), main(), resolve_shared_ents(), and moab::ScdInterface::tag_shared_vertices().
|
static |
Definition at line 8715 of file ParallelComm.cpp.
References buffProcs, check_my_shared_handles(), ErrorCode, get_buffers(), MB_SUCCESS, and pack_shared_handles().
Definition at line 6256 of file ParallelComm.cpp.
References moab::Interface::add_entities(), moab::Range::begin(), moab::Interface::create_meshset(), moab::Interface::delete_entities(), moab::Range::erase(), ErrorCode, moab::Interface::get_number_entities_by_handle(), get_sharing_data(), moab::Range::insert(), interface_sets(), interfaceSets, MAX_SHARING_PROCS, MB_CHK_SET_ERR, MB_SUCCESS, mbImpl, MESHSET_SET, proc_config(), moab::ProcConfig::proc_rank(), procConfig, moab::ProcList::procs, PSTATUS_INTERFACE, PSTATUS_MULTISHARED, PSTATUS_NOT_OWNED, PSTATUS_SHARED, pstatus_tag(), moab::Range::rbegin(), moab::Interface::remove_entities(), moab::Range::rend(), set_sharing_data(), sharedh_tag(), sharedhs_tag(), sharedp_tag(), sharedps_tag(), moab::Interface::tag_clear_data(), and moab::Interface::tag_set_data().
Referenced by exchange_ghost_cells().
ErrorCode moab::ParallelComm::check_global_ids | ( | EntityHandle | this_set, |
const int | dimension, | ||
const int | start_id = 1 , |
||
const bool | largest_dim_only = true , |
||
const bool | parallel = true , |
||
const bool | owned_only = false |
||
) |
check for global ids; based only on tag handle being there or not; if it's not there, create them for the specified dimensions
owned_only | If true, do not get global IDs for non-owned entities from remote processors. |
Definition at line 5532 of file ParallelComm.cpp.
References assign_global_ids(), moab::Range::empty(), ErrorCode, moab::Interface::get_entities_by_type_and_tag(), moab::Interface::globalId_tag(), MB_CHK_SET_ERR, MB_SUCCESS, mbImpl, and MBVERTEX.
Referenced by moab::ReadParallel::load_file().
ErrorCode moab::ParallelComm::check_local_shared | ( | ) |
Definition at line 8588 of file ParallelComm.cpp.
References ErrorCode, moab::Interface::get_connectivity(), get_sharing_data(), list_entities(), MAX_SHARING_PROCS, MB_SUCCESS, MBENTITYSET, mbImpl, MBVERTEX, moab::ProcConfig::proc_rank(), procConfig, PSTATUS_MULTISHARED, PSTATUS_NOT_OWNED, PSTATUS_SHARED, sharedEnts, and moab::Interface::type_from_handle().
Referenced by check_all_shared_handles().
ErrorCode moab::ParallelComm::check_my_shared_handles | ( | std::vector< std::vector< SharedEntityData > > & | shents, |
const char * | prefix = NULL |
||
) |
Definition at line 8757 of file ParallelComm.cpp.
References buffProcs, moab::Range::empty(), moab::Range::end(), moab::Range::erase(), ErrorCode, get_pstatus(), get_remote_handles(), get_shared_entities(), moab::Range::insert(), list_entities(), MB_SUCCESS, MBPOLYHEDRON, moab::Range::merge(), PSTATUS_NOT_OWNED, rank(), sharedEnts, and moab::Range::upper_bound().
Referenced by check_all_shared_handles().
check entities to make sure there are no zero-valued remote handles where they shouldn't be
Definition at line 7323 of file ParallelComm.cpp.
References moab::Range::begin(), moab::Range::end(), ErrorCode, moab::Range::insert(), MAX_SHARING_PROCS, MB_CHK_SET_ERR, MB_SET_ERR, MB_SUCCESS, MB_TAG_NOT_FOUND, mbImpl, pstatus_tag(), sharedh_tag(), sharedhs_tag(), sharedp_tag(), sharedps_tag(), moab::Range::size(), and moab::Interface::tag_get_data().
Referenced by exchange_ghost_cells(), and exchange_owned_mesh().
Definition at line 8842 of file ParallelComm.cpp.
References moab::Range::begin(), ErrorCode, MB_CHK_SET_ERR, MB_SUCCESS, MB_TAG_NOT_FOUND, mbImpl, pstatus_tag(), sharedh_tag(), sharedp_tag(), moab::Range::size(), moab::Interface::tag_delete_data(), and moab::Interface::tag_get_data().
ErrorCode moab::ParallelComm::collective_sync_partition | ( | ) |
Definition at line 8268 of file ParallelComm.cpp.
References globalPartCount, MB_SUCCESS, partition_sets(), proc_config(), and moab::Range::size().
|
inline |
Definition at line 652 of file ParallelComm.hpp.
References moab::ProcConfig::proc_comm(), and proc_config().
Referenced by gather_data(), get_pcomm(), moab::ParallelMergeMesh::GetGlobalBox(), iMOAB_UpdateMeshInfo(), main(), perform_laplacian_smoothing(), perform_lloyd_relaxation(), moab::LloydSmoother::perform_smooth(), moab::ParallelMergeMesh::PerformMerge(), moab::ParCommGraph::receive_comm_graph(), moab::ParCommGraph::send_graph_partition(), ToolContext::timer_pop(), and RuntimeContext::timer_pop().
ErrorCode moab::ParallelComm::correct_thin_ghost_layers | ( | ) |
Definition at line 9346 of file ParallelComm.cpp.
References buffProcs, ErrorCode, exchange_all_shared_handles(), get_buffers(), get_sharing_data(), moab::DebugOutput::get_verbosity(), moab::ParallelComm::SharedEntityData::local, MAX_SHARING_PROCS, MB_CHK_ERR, MB_CHK_SET_ERR, MB_SUCCESS, mbImpl, myDebug, moab::ParallelComm::SharedEntityData::owner, PSTATUS_MULTISHARED, PSTATUS_NOT_OWNED, pstatus_tag(), rank(), moab::ParallelComm::SharedEntityData::remote, sharedEnts, sharedh_tag(), sharedhs_tag(), sharedp_tag(), sharedps_tag(), and moab::Interface::tag_set_data().
Referenced by moab::ReadParallel::load_file().
|
private |
Definition at line 5093 of file ParallelComm.cpp.
References moab::Interface::add_parent_child(), moab::Range::begin(), moab::Range::clear(), moab::Interface::dimension_from_handle(), moab::Range::empty(), moab::Range::end(), ErrorCode, moab::Interface::get_adjacencies(), moab::Interface::get_entities_by_handle(), interfaceSets, MB_CHK_SET_ERR, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_DENSE, MB_TYPE_HANDLE, mbImpl, moab::Range::rbegin(), moab::Range::size(), moab::Interface::tag_delete(), moab::Interface::tag_get_data(), moab::Interface::tag_get_handle(), and moab::Interface::tag_set_data().
Referenced by resolve_shared_ents(), and moab::ParallelMergeMesh::TagSharedElements().
ErrorCode moab::ParallelComm::create_interface_sets | ( | EntityHandle | this_set, |
int | resolve_dim, | ||
int | shared_dim | ||
) |
Definition at line 4981 of file ParallelComm.cpp.
References create_interface_sets(), moab::Interface::dimension_from_handle(), ErrorCode, moab::Skinner::find_skin(), moab::Interface::get_adjacencies(), moab::Interface::get_entities_by_dimension(), get_proc_nvecs(), get_sharing_data(), MAX_SHARING_PROCS, MB_CHK_SET_ERR, mbImpl, sharedEnts, and moab::Interface::UNION.
ErrorCode moab::ParallelComm::create_interface_sets | ( | std::map< std::vector< int >, std::vector< EntityHandle > > & | proc_nvecs | ) |
Definition at line 5017 of file ParallelComm.cpp.
References moab::Interface::add_entities(), moab::Interface::create_meshset(), moab::CN::EntityTypeName(), ErrorCode, moab::GeomUtil::first(), get_shared_proc_tags(), moab::ID_FROM_HANDLE(), moab::Range::insert(), interfaceSets, MAX_SHARING_PROCS, MB_CHK_SET_ERR, MB_SUCCESS, mbImpl, MBVERTEX, MESHSET_SET, proc_config(), moab::ProcConfig::proc_rank(), procConfig, PSTATUS_INTERFACE, PSTATUS_MULTISHARED, PSTATUS_NOT_OWNED, PSTATUS_SHARED, moab::Interface::tag_set_data(), moab::Interface::type_from_handle(), and moab::TYPE_FROM_HANDLE().
Referenced by create_interface_sets(), exchange_owned_meshs(), resolve_shared_ents(), moab::ScdInterface::tag_shared_vertices(), and moab::ParallelMergeMesh::TagSharedElements().
ErrorCode moab::ParallelComm::create_part | ( | EntityHandle & | part_out | ) |
Definition at line 8210 of file ParallelComm.cpp.
References moab::Interface::add_entities(), moab::Interface::create_meshset(), moab::Interface::delete_entities(), ErrorCode, get_partitioning(), globalPartCount, moab::Range::index(), moab::Range::insert(), MB_SUCCESS, mbImpl, MESHSET_SET, part_tag(), partition_sets(), proc_config(), moab::ProcConfig::proc_rank(), and moab::Interface::tag_set_data().
|
private |
Definition at line 4228 of file ParallelComm.cpp.
References moab::DebugOutput::get_verbosity(), MPE_Describe_state, MPE_LOG_OK, and myDebug.
Referenced by resolve_shared_ents().
|
inlineprivate |
reset message buffers to their initial state
delete all buffers, freeing up any memory held by them
Definition at line 1557 of file ParallelComm.hpp.
References localOwnedBuffs, and remoteOwnedBuffs.
Referenced by ~ParallelComm().
Definition at line 9258 of file ParallelComm.cpp.
References moab::Range::begin(), moab::ProcConfig::crystal_router(), moab::Interface::delete_entities(), moab::TupleList::enableWriteAccess(), moab::Range::end(), ErrorCode, moab::TupleList::get_n(), get_sharing_data(), moab::TupleList::inc_n(), moab::Range::index(), moab::TupleList::initialize(), moab::Range::insert(), MAX_SHARING_PROCS, MB_CHK_SET_ERR, MB_SUCCESS, mbImpl, procConfig, sharedEnts, moab::Range::size(), moab::TupleList::vi_wr, moab::TupleList::vul_rd, and moab::TupleList::vul_wr.
Referenced by moab::NCHelperScrip::create_mesh().
ErrorCode moab::ParallelComm::destroy_part | ( | EntityHandle | part | ) |
Definition at line 8248 of file ParallelComm.cpp.
References moab::Interface::delete_entities(), moab::Range::erase(), ErrorCode, get_partitioning(), globalPartCount, moab::Range::index(), MB_SUCCESS, mbImpl, partition_sets(), and moab::Interface::remove_entities().
|
private |
estimate size required to pack entities
Definition at line 1503 of file ParallelComm.cpp.
References entities, ErrorCode, moab::Interface::get_connectivity(), MB_CHK_SET_ERR_RET_VAL, MBEDGE, MBENTITYSET, mbImpl, MBVERTEX, and moab::TYPE_FROM_HANDLE().
Referenced by pack_entities().
|
private |
estimate size required to pack sets
Definition at line 1536 of file ParallelComm.cpp.
References entities, ErrorCode, moab::Interface::get_entities_by_handle(), moab::Interface::get_meshset_options(), moab::Interface::get_number_entities_by_handle(), MB_CHK_SET_ERR_RET_VAL, MBENTITYSET, mbImpl, MESHSET_SET, moab::Interface::num_child_meshsets(), moab::Interface::num_parent_meshsets(), and moab::RANGE_SIZE().
Referenced by pack_sets().
|
private |
Every processor sends shared entity handle data to every other processor that it shares entities with. Passed back map is all received data, indexed by processor ID. This function is intended to be used for debugging.
Definition at line 8474 of file ParallelComm.cpp.
References buffProcs, MB_FILE_WRITE_ERROR, MB_SUCCESS, moab::ProcConfig::proc_comm(), and procConfig.
Referenced by check_all_shared_handles(), and correct_thin_ghost_layers().
ErrorCode moab::ParallelComm::exchange_ghost_cells | ( | int | ghost_dim, |
int | bridge_dim, | ||
int | num_layers, | ||
int | addl_ents, | ||
bool | store_remote_handles, | ||
bool | wait_all = true , |
||
EntityHandle * | file_set = NULL |
||
) |
Exchange ghost cells with neighboring procs Neighboring processors are those sharing an interface with this processor. All entities of dimension ghost_dim within num_layers of interface, measured going through bridge_dim, are exchanged. See MeshTopoUtil::get_bridge_adjacencies for description of bridge adjacencies. If wait_all is false and store_remote_handles is true, MPI_Request objects are available in the sendReqs[2*MAX_SHARING_PROCS] member array, with inactive requests marked as MPI_REQUEST_NULL. If store_remote_handles or wait_all is false, this function returns after all entities have been received and processed.
ghost_dim | Dimension of ghost entities to be exchanged |
bridge_dim | Dimension of entities used to measure layers from interface |
num_layers | Number of layers of ghosts requested |
addl_ents | Dimension of additional adjacent entities to exchange with ghosts, 0 if none |
store_remote_handles | If true, send message with new entity handles to source processor |
wait_all | If true, function does not return until all send buffers are cleared. |
Definition at line 5687 of file ParallelComm.cpp.
References moab::Interface::add_entities(), buffProcs, check_all_shared_handles(), check_clean_iface(), check_sent_ents(), moab::Range::compactness(), moab::Range::empty(), ErrorCode, get_sent_ents(), moab::DebugOutput::get_verbosity(), INITIAL_BUFF_SIZE, localOwnedBuffs, MAX_SHARING_PROCS, MB_CHK_SET_ERR, moab::MB_MESG_ENTS_SIZE, moab::MB_MESG_REMOTEH_SIZE, MB_SET_ERR, MB_SUCCESS, mbImpl, MPE_Log_event, moab::msgs, myDebug, pack_entities(), pack_remote_handles(), print_buffer(), PRINT_DEBUG_IRECV, PRINT_DEBUG_RECD, PRINT_DEBUG_WAITANY, moab::ProcConfig::proc_comm(), moab::ProcConfig::proc_rank(), procConfig, recv_buffer(), remoteOwnedBuffs, moab::TupleList::reset(), reset_all_buffers(), send_buffer(), sendReqs, sharedEnts, moab::Range::size(), size(), tag_iface_entities(), moab::DebugOutput::tprintf(), unpack_entities(), and unpack_remote_handles().
Referenced by moab::NestedRefine::exchange_ghosts(), moab::ReadParallel::load_file(), main(), resolve_shared_ents(), and moab::ParallelMergeMesh::TagSharedElements().
|
static |
Static version of exchange_ghost_cells, exchanging info through buffers rather than messages.
Definition at line 6588 of file ParallelComm.cpp.
References moab::Interface::add_entities(), buffProcs, check_all_shared_handles(), check_clean_iface(), check_sent_ents(), ErrorCode, get_moab(), get_sent_ents(), localOwnedBuffs, MAX_SHARING_PROCS, MB_CHK_SET_ERR, MB_SUCCESS, pack_entities(), pack_remote_handles(), moab::Interface::query_interface(), moab::TupleList::reset(), size(), unpack_entities(), and unpack_remote_handles().
ErrorCode moab::ParallelComm::exchange_owned_mesh | ( | std::vector< unsigned int > & | exchange_procs, |
std::vector< Range * > & | exchange_ents, | ||
std::vector< MPI_Request > & | recv_ent_reqs, | ||
std::vector< MPI_Request > & | recv_remoteh_reqs, | ||
const bool | recv_posted, | ||
bool | store_remote_handles, | ||
bool | wait_all, | ||
bool | migrate = false |
||
) |
Exchange owned mesh for input mesh entities and sets This function is called twice by exchange_owned_meshs to exchange entities before sets.
migrate | if the owner if entities are changed or not |
Definition at line 6912 of file ParallelComm.cpp.
References add_verts(), assign_entities_part(), buffProcs, check_sent_ents(), moab::Range::compactness(), moab::Range::empty(), moab::TupleList::enableWriteAccess(), ErrorCode, filter_pstatus(), get_buffers(), moab::TupleList::get_n(), moab::DebugOutput::get_verbosity(), moab::TupleList::inc_n(), INITIAL_BUFF_SIZE, moab::TupleList::initialize(), localOwnedBuffs, MAX_SHARING_PROCS, MB_CHK_SET_ERR, moab::MB_MESG_ENTS_SIZE, moab::MB_MESG_REMOTEH_SIZE, MB_SET_ERR, MB_SUCCESS, moab::Range::merge(), MPE_Log_event, moab::msgs, myDebug, pack_buffer(), pack_remote_handles(), print_buffer(), PRINT_DEBUG_IRECV, PRINT_DEBUG_RECD, PRINT_DEBUG_WAITANY, moab::ProcConfig::proc_comm(), moab::ProcConfig::proc_rank(), procConfig, PSTATUS_AND, PSTATUS_SHARED, recv_buffer(), remoteOwnedBuffs, remove_entities_part(), moab::TupleList::buffer::reset(), moab::TupleList::reset(), reset_all_buffers(), send_buffer(), sendReqs, moab::Range::size(), size(), moab::TupleList::sort(), moab::subtract(), moab::DebugOutput::tprintf(), unpack_buffer(), unpack_remote_handles(), moab::TupleList::vi_wr, and moab::TupleList::vul_wr.
Referenced by exchange_owned_meshs().
ErrorCode moab::ParallelComm::exchange_owned_meshs | ( | std::vector< unsigned int > & | exchange_procs, |
std::vector< Range * > & | exchange_ents, | ||
std::vector< MPI_Request > & | recv_ent_reqs, | ||
std::vector< MPI_Request > & | recv_remoteh_reqs, | ||
bool | store_remote_handles, | ||
bool | wait_all = true , |
||
bool | migrate = false , |
||
int | dim = 0 |
||
) |
Exchange owned mesh for input mesh entities and sets This function should be called collectively over the communicator for this ParallelComm. If this version is called, all shared exchanged entities should have a value for this tag (or the tag should have a default value).
exchange_procs | processor vector exchanged |
exchange_ents | exchanged entities for each processors |
migrate | if the owner if entities are changed or not |
Definition at line 6842 of file ParallelComm.cpp.
References create_interface_sets(), dim, moab::Interface::dimension_from_handle(), ErrorCode, exchange_owned_mesh(), get_sharing_data(), MAX_SHARING_PROCS, MB_CHK_SET_ERR, MB_SUCCESS, MBENTITYSET, mbImpl, recvRemotehReqs, recvReqs, sharedEnts, moab::Range::subset_by_type(), and moab::subtract().
|
inline |
Exchange tags for all shared and ghosted entities This function should be called collectively over the communicator for this ParallelComm. If the entities vector is empty, all shared entities participate in the exchange. If a proc has no owned entities this function must still be called since it is collective.
tag_name | Name of tag to be exchanged |
entities | Entities for which tags are exchanged |
Definition at line 1589 of file ParallelComm.hpp.
References entities, ErrorCode, exchange_tags(), MB_SUCCESS, MB_TAG_ANY, MB_TAG_NOT_FOUND, MB_TYPE_OPAQUE, mbImpl, and moab::Interface::tag_get_handle().
ErrorCode moab::ParallelComm::exchange_tags | ( | const std::vector< Tag > & | src_tags, |
const std::vector< Tag > & | dst_tags, | ||
const Range & | entities | ||
) |
Exchange tags for all shared and ghosted entities This function should be called collectively over the communicator for this ParallelComm. If this version is called, all ghosted/shared entities should have a value for this tag (or the tag should have a default value). If the entities vector is empty, all shared entities participate in the exchange. If a proc has no owned entities this function must still be called since it is collective.
src_tags | Vector of tag handles to be exchanged |
dst_tags | Tag handles to store the tags on the non-owning procs |
entities | Entities for which tags are exchanged |
Definition at line 7526 of file ParallelComm.cpp.
References buffProcs, moab::Range::empty(), entities, ErrorCode, filter_pstatus(), get_comm_procs(), moab::Interface::get_entities_by_type_and_tag(), moab::DebugOutput::get_verbosity(), INITIAL_BUFF_SIZE, moab::intersect(), moab::Interface::INTERSECT, localOwnedBuffs, MAX_SHARING_PROCS, MB_CHK_SET_ERR, moab::MB_MESG_TAGS_SIZE, MB_SET_ERR, MB_SUCCESS, mbImpl, MBMAXTYPE, myDebug, pack_tags(), PRINT_DEBUG_IRECV, PRINT_DEBUG_RECD, PRINT_DEBUG_WAITANY, moab::ProcConfig::proc_comm(), moab::ProcConfig::proc_rank(), procConfig, PSTATUS_AND, PSTATUS_NOT, PSTATUS_NOT_OWNED, PSTATUS_SHARED, recv_buffer(), remoteOwnedBuffs, reset_all_buffers(), send_buffer(), sendReqs, sharedEnts, moab::Range::size(), moab::Interface::tag_get_bytes(), moab::Interface::tag_get_data(), moab::Interface::tag_get_default_value(), moab::Interface::tag_set_data(), moab::DebugOutput::tprintf(), and unpack_tags().
Referenced by assign_global_ids(), moab::WriteHDF5Parallel::exchange_file_ids(), moab::NestedRefine::exchange_ghosts(), exchange_tags(), iMOAB_SynchronizeTags(), main(), perform_laplacian_smoothing(), perform_lloyd_relaxation(), and moab::LloydSmoother::perform_smooth().
Exchange tags for all shared and ghosted entities This function should be called collectively over the communicator for this ParallelComm. If the entities vector is empty, all shared entities participate in the exchange. If a proc has no owned entities this function must still be called since it is collective.
tagh | Handle of tag to be exchanged |
entities | Entities for which tags are exchanged |
Definition at line 1602 of file ParallelComm.hpp.
References entities, and exchange_tags().
ErrorCode moab::ParallelComm::filter_pstatus | ( | Range & | ents, |
const unsigned char | pstatus_val, | ||
const unsigned char | op, | ||
int | to_proc = -1 , |
||
Range * | returned_ents = NULL |
||
) |
Filter the entities by pstatus tag. op is one of PSTATUS_ AND, OR, NOT; an entity is output if: AND: all bits set in pstatus_val are also set on entity OR: any bits set in pstatus_val also set on entity NOT: any bits set in pstatus_val are not set on entity
Results returned in input list, unless result_ents is passed in non-null, in which case results are returned in result_ents.
If ents is passed in empty, filter is done on shared entities in this pcomm instance, i.e. contents of sharedEnts.
ents | Input entities to filter |
pstatus_val | pstatus value to which entities are compared |
op | Bitwise operation performed between pstatus values |
to_proc | If non-negative and PSTATUS_SHARED is set on pstatus_val, only entities shared with to_proc are returned |
result_ents | If non-null, results of filter are put in the pointed-to range |
Definition at line 5577 of file ParallelComm.cpp.
References moab::Range::begin(), moab::Range::clear(), moab::Range::empty(), moab::Range::end(), ErrorCode, moab::Range::insert(), MAX_SHARING_PROCS, MB_CHK_SET_ERR, MB_SUCCESS, mbImpl, PSTATUS_AND, PSTATUS_MULTISHARED, PSTATUS_NOT, PSTATUS_OR, PSTATUS_SHARED, pstatus_tag(), sharedp_tag(), sharedps_tag(), moab::Range::size(), moab::Range::swap(), and moab::Interface::tag_get_data().
Referenced by moab::NCWriteGCRM::collect_mesh_info(), moab::ScdNCWriteHelper::collect_mesh_info(), moab::NCWriteHOMME::collect_mesh_info(), moab::NCWriteMPAS::collect_mesh_info(), moab::ScdNCHelper::create_quad_coordinate_tag(), moab::WriteHDF5Parallel::exchange_file_ids(), exchange_owned_mesh(), exchange_tags(), moab::WriteHDF5Parallel::gather_interface_meshes(), get_ghosted_entities(), get_max_volume(), get_sent_ents(), get_shared_entities(), hcFilter(), iMOAB_UpdateMeshInfo(), moab::HalfFacetRep::initialize(), moab::LloydSmoother::initialize(), moab::HiReconstruction::initialize(), laplacianFilter(), moab::ReadParallel::load_file(), main(), perform_laplacian_smoothing(), perform_lloyd_relaxation(), moab::LloydSmoother::perform_smooth(), moab::ScdNCHelper::read_scd_variables_to_nonset_allocate(), moab::NCHelperGCRM::read_ucd_variables_to_nonset_allocate(), moab::NCHelperMPAS::read_ucd_variables_to_nonset_allocate(), reduce_tags(), resolve_shared_sets(), send_entities(), and settle_intersection_points().
|
private |
given connectivity and type, find an existing entity, if there is one
Definition at line 3047 of file ParallelComm.cpp.
References moab::Range::begin(), moab::CN::Dimension(), moab::Range::empty(), ErrorCode, moab::Interface::get_adjacencies(), MB_CHK_SET_ERR, MB_SUCCESS, mbImpl, and MBVERTEX.
Referenced by unpack_entities(), and unpack_remote_handles().
ErrorCode moab::ParallelComm::gather_data | ( | Range & | gather_ents, |
Tag & | tag_handle, | ||
Tag | id_tag = 0 , |
||
EntityHandle | gather_set = 0 , |
||
int | root_proc_rank = 0 |
||
) |
Definition at line 8914 of file ParallelComm.cpp.
References moab::Range::begin(), comm(), dim, moab::Interface::dimension_from_handle(), moab::Range::end(), ErrorCode, moab::Interface::get_entities_by_dimension(), MB_SUCCESS, mbImpl, proc_config(), moab::ProcConfig::proc_size(), moab::Range::psize(), rank(), moab::Range::size(), size(), moab::Interface::tag_get_bytes(), moab::Interface::tag_get_data(), and moab::Interface::tag_iterate().
|
static |
Definition at line 8023 of file ParallelComm.cpp.
References ErrorCode, MAX_SHARING_PROCS, MB_SUCCESS, MB_TAG_NOT_FOUND, pcomm_tag(), and moab::Interface::tag_get_data().
Referenced by moab::Core::deinitialize().
int moab::ParallelComm::get_buffers | ( | int | to_proc, |
bool * | is_new = NULL |
||
) |
get (and possibly allocate) buffers for messages to/from to_proc; returns index of to_proc in buffProcs vector; if is_new is non-NULL, sets to whether new buffer was allocated PUBLIC ONLY FOR TESTING!
Definition at line 514 of file ParallelComm.cpp.
References buffProcs, INITIAL_BUFF_SIZE, localOwnedBuffs, MAX_SHARING_PROCS, moab::ProcConfig::proc_rank(), procConfig, and remoteOwnedBuffs.
Referenced by check_all_shared_handles(), correct_thin_ghost_layers(), exchange_owned_mesh(), get_interface_procs(), pack_shared_handles(), post_irecv(), recv_entities(), recv_messages(), recv_remote_handle_messages(), send_entities(), send_recv_entities(), moab::ScdInterface::tag_shared_vertices(), and unpack_entities().
|
inline |
get processors with which this processor communicates
Definition at line 1633 of file ParallelComm.hpp.
References buffProcs, ErrorCode, get_interface_procs(), and MB_SUCCESS.
Referenced by exchange_tags(), reduce_tags(), and settle_intersection_points().
int moab::ParallelComm::get_debug_verbosity | ( | ) |
get the verbosity level of output from this pcomm
Definition at line 8872 of file ParallelComm.cpp.
References moab::DebugOutput::get_verbosity(), and myDebug.
Referenced by augment_default_sets_with_ghosts(), moab::ScdInterface::construct_box(), and moab::ScdInterface::tag_shared_vertices().
ErrorCode moab::ParallelComm::get_entityset_local_handle | ( | unsigned | owning_rank, |
EntityHandle | remote_handle, | ||
EntityHandle & | local_handle | ||
) | const |
Given set owner and handle on owner, find local set handle.
Definition at line 8892 of file ParallelComm.cpp.
References moab::SharedSetData::get_local_handle(), and sharedSetData.
Referenced by moab::WriteHDF5Parallel::communicate_shared_set_ids().
ErrorCode moab::ParallelComm::get_entityset_owner | ( | EntityHandle | entity_set, |
unsigned & | owner_rank, | ||
EntityHandle * | remote_handle = 0 |
||
) | const |
Get rank of the owner of a shared set. Returns this proc if set is not shared. Optionally returns handle on owning process for shared set.
Definition at line 8882 of file ParallelComm.cpp.
References moab::SharedSetData::get_owner(), and sharedSetData.
Referenced by moab::WriteHDF5Parallel::communicate_shared_set_data(), moab::WriteHDF5Parallel::communicate_shared_set_ids(), and moab::WriteHDF5Parallel::print_set_sharing_data().
ErrorCode moab::ParallelComm::get_entityset_owners | ( | std::vector< unsigned > & | ranks | ) | const |
Get ranks of all processes that own at least one set that is shared with this process. Will include the rank of this process if this process owns any shared set.
Definition at line 8904 of file ParallelComm.cpp.
References moab::SharedSetData::get_owning_procs(), and sharedSetData.
Referenced by moab::WriteHDF5Parallel::communicate_shared_set_ids().
ErrorCode moab::ParallelComm::get_entityset_procs | ( | EntityHandle | entity_set, |
std::vector< unsigned > & | ranks | ||
) | const |
Get array of process IDs sharing a set. Returns zero and passes back NULL if set is not shared.
Definition at line 8877 of file ParallelComm.cpp.
References moab::SharedSetData::get_sharing_procs(), and sharedSetData.
Referenced by moab::WriteHDF5Parallel::communicate_shared_set_data(), moab::WriteHDF5Parallel::communicate_shared_set_ids(), and moab::WriteHDF5Parallel::print_set_sharing_data().
|
private |
for specified bridge/ghost dimension, to_proc, and number of layers, get the entities to be ghosted, and info on additional procs needing to communicate with to_proc
Definition at line 7437 of file ParallelComm.cpp.
References add_verts(), moab::Range::begin(), moab::Range::empty(), moab::Range::end(), ErrorCode, filter_pstatus(), moab::Interface::get_adjacencies(), moab::MeshTopoUtil::get_bridge_adjacencies(), moab::Interface::get_entities_by_dimension(), moab::Interface::get_entities_by_handle(), interfaceSets, is_iface_proc(), MB_CHK_SET_ERR, MB_SUCCESS, mbImpl, moab::Range::merge(), PSTATUS_NOT, PSTATUS_NOT_OWNED, moab::Range::subset_by_dimension(), and moab::Interface::UNION.
Referenced by get_sent_ents().
ErrorCode moab::ParallelComm::get_global_part_count | ( | int & | count_out | ) | const |
|
inline |
Get ID used to reference this PCOMM instance.
Definition at line 70 of file ParallelComm.hpp.
References pcommID.
Referenced by iMOAB_RegisterApplication(), and DeformMeshRemap::read_file().
Get entities on interfaces shared with another proc.
other_proc | Other proc sharing the interface |
dim | Dimension of entities to return, -1 if all dims |
iface_ents | Returned entities |
Definition at line 7275 of file ParallelComm.cpp.
References moab::Range::begin(), dim, moab::Range::end(), ErrorCode, moab::Interface::get_entities_by_dimension(), moab::Interface::get_entities_by_handle(), interfaceSets, is_iface_proc(), MB_CHK_SET_ERR, MB_SUCCESS, and mbImpl.
Referenced by get_sent_ents().
ErrorCode moab::ParallelComm::get_interface_procs | ( | std::set< unsigned int > & | iface_procs, |
const bool | get_buffs = false |
||
) |
get processors with which this processor shares an interface
Get processors with which this processor communicates; sets are sorted by processor.
Definition at line 5440 of file ParallelComm.cpp.
References moab::Range::begin(), moab::Range::end(), ErrorCode, get_buffers(), interfaceSets, MAX_SHARING_PROCS, MB_CHK_SET_ERR, MB_SUCCESS, mbImpl, moab::ProcConfig::proc_rank(), procConfig, sharedp_tag(), sharedps_tag(), moab::Range::size(), and moab::Interface::tag_get_data().
Referenced by get_comm_procs(), resolve_shared_ents(), and moab::ParallelMergeMesh::TagSharedElements().
ErrorCode moab::ParallelComm::get_interface_sets | ( | EntityHandle | part, |
Range & | iface_sets_out, | ||
int * | adj_part_id = 0 |
||
) |
Definition at line 8310 of file ParallelComm.cpp.
References moab::Range::begin(), moab::Range::end(), moab::Range::erase(), ErrorCode, get_sharing_data(), interface_sets(), MAX_SHARING_PROCS, and MB_SUCCESS.
Referenced by get_part_neighbor_ids().
|
private |
same as above except puts results in range
Definition at line 3090 of file ParallelComm.cpp.
References moab::Range::begin(), moab::Range::end(), ErrorCode, get_local_handles(), and moab::Range::size().
|
private |
goes through from_vec, and for any with type MBMAXTYPE, replaces with new_ents value at index corresponding to id of entity in from_vec
Definition at line 3102 of file ParallelComm.cpp.
References moab::Range::begin(), and moab::Range::end().
Referenced by get_local_handles(), unpack_entities(), unpack_sets(), and unpack_tags().
|
private |
same as above except gets new_ents from vector
Definition at line 3109 of file ParallelComm.cpp.
References moab::ID_FROM_HANDLE(), MB_SUCCESS, MBMAXTYPE, and moab::TYPE_FROM_HANDLE().
|
inline |
Definition at line 779 of file ParallelComm.hpp.
References mbImpl.
Referenced by moab::ParCommGraph::compute_partition(), exchange_ghost_cells(), moab::ParallelMergeMesh::ParallelMergeMesh(),