MFEM v2.0
Public Member Functions | Private Attributes
GroupCommunicator Class Reference

#include <communication.hpp>

Collaboration diagram for GroupCommunicator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GroupCommunicator (GroupTopology &gt)
void Create (Array< int > &ldof_group)
TableGroupLDofTable ()
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

GroupTopologygtopo
Table group_ldof
Array< int > group_buf
MPI_Request * requests
MPI_Status * statuses

Detailed Description

Definition at line 63 of file communication.hpp.


Constructor & Destructor Documentation

GroupCommunicator::GroupCommunicator ( GroupTopology gt)
GroupCommunicator::~GroupCommunicator ( )

Member Function Documentation

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.


Member Data Documentation

Definition at line 68 of file communication.hpp.

Definition at line 67 of file communication.hpp.

Referenced by GroupLDofTable().

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.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines