MFEM v2.0
|
#include <communication.hpp>
Public Member Functions | |
GroupCommunicator (GroupTopology >) | |
void | Create (Array< int > &ldof_group) |
Table & | GroupLDofTable () |
void | Finalize () |
Allocate internal buffers after the GroupLDofTable is defined. | |
void | Bcast (Array< int > &ldata) |
Broadcast within each group where the master is the root. | |
void | Reduce (Array< int > &ldata) |
~GroupCommunicator () | |
Private Attributes | |
GroupTopology & | gtopo |
Table | group_ldof |
Array< int > | group_buf |
MPI_Request * | requests |
MPI_Status * | statuses |
Definition at line 63 of file communication.hpp.
GroupCommunicator::GroupCommunicator | ( | GroupTopology & | gt | ) |
GroupCommunicator::~GroupCommunicator | ( | ) |
void GroupCommunicator::Bcast | ( | Array< int > & | ldata | ) |
Broadcast within each group where the master is the root.
void GroupCommunicator::Create | ( | Array< int > & | ldof_group | ) |
Initialize the communicator from a local-dof to group map. Finalize is called internally.
void GroupCommunicator::Finalize | ( | ) |
Allocate internal buffers after the GroupLDofTable is defined.
Table& GroupCommunicator::GroupLDofTable | ( | ) | [inline] |
Fill-in the returned Table reference to initialize the communicator then call Finalize.
Definition at line 79 of file communication.hpp.
References group_ldof.
void GroupCommunicator::Reduce | ( | Array< int > & | ldata | ) |
Reduce within each group where the master is the root. The reduce operation is bitwise OR.
Array<int> GroupCommunicator::group_buf [private] |
Definition at line 68 of file communication.hpp.
Table GroupCommunicator::group_ldof [private] |
Definition at line 67 of file communication.hpp.
Referenced by GroupLDofTable().
GroupTopology& GroupCommunicator::gtopo [private] |
Definition at line 66 of file communication.hpp.
MPI_Request* GroupCommunicator::requests [private] |
Definition at line 69 of file communication.hpp.
MPI_Status* GroupCommunicator::statuses [private] |
Definition at line 70 of file communication.hpp.