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

#include <communication.hpp>

Collaboration diagram for GroupTopology:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GroupTopology (MPI_Comm comm)
MPI_Comm GetComm ()
int MyRank ()
int NRanks ()
void Create (ListOfIntegerSets &groups, int mpitag)
int NGroups ()
int GetNumNeighbors ()
int GetNeighborRank (int i)
bool IAmMaster (int g)
int GetGroupMaster (int g)
int GetGroupMasterRank (int g)
int GetGroupMasterGroup (int g)
int GetGroupSize (int g)
const int * GetGroup (int g)

Private Member Functions

void ProcToLProc ()

Private Attributes

MPI_Comm MyComm
Table group_lproc
Array< int > groupmaster_lproc
Array< int > lproc_proc
Array< int > group_mgroup

Detailed Description

Definition at line 15 of file communication.hpp.


Constructor & Destructor Documentation

GroupTopology::GroupTopology ( MPI_Comm  comm) [inline]

Definition at line 34 of file communication.hpp.

References MyComm.


Member Function Documentation

void GroupTopology::Create ( ListOfIntegerSets groups,
int  mpitag 
)
MPI_Comm GroupTopology::GetComm ( ) [inline]

Definition at line 36 of file communication.hpp.

References MyComm.

const int* GroupTopology::GetGroup ( int  g) [inline]

Definition at line 59 of file communication.hpp.

References Table::GetRow(), and group_lproc.

int GroupTopology::GetGroupMaster ( int  g) [inline]

Definition at line 50 of file communication.hpp.

References groupmaster_lproc.

int GroupTopology::GetGroupMasterGroup ( int  g) [inline]

Definition at line 54 of file communication.hpp.

References group_mgroup.

int GroupTopology::GetGroupMasterRank ( int  g) [inline]

Definition at line 52 of file communication.hpp.

References groupmaster_lproc, and lproc_proc.

int GroupTopology::GetGroupSize ( int  g) [inline]

Definition at line 56 of file communication.hpp.

References group_lproc, and Table::RowSize().

int GroupTopology::GetNeighborRank ( int  i) [inline]

Definition at line 45 of file communication.hpp.

References lproc_proc.

int GroupTopology::GetNumNeighbors ( ) [inline]

Definition at line 44 of file communication.hpp.

References lproc_proc, and Array< T >::Size().

bool GroupTopology::IAmMaster ( int  g) [inline]

Definition at line 47 of file communication.hpp.

References groupmaster_lproc.

int GroupTopology::MyRank ( ) [inline]

Definition at line 37 of file communication.hpp.

References MyComm.

int GroupTopology::NGroups ( ) [inline]

Definition at line 42 of file communication.hpp.

References group_lproc, and Table::Size().

Referenced by ParMesh::GetNGroups().

int GroupTopology::NRanks ( ) [inline]

Definition at line 38 of file communication.hpp.

References MyComm.

void GroupTopology::ProcToLProc ( ) [private]

Member Data Documentation

Definition at line 26 of file communication.hpp.

Referenced by GetGroup(), GetGroupSize(), and NGroups().

Definition at line 29 of file communication.hpp.

Referenced by GetGroupMasterGroup().

Definition at line 27 of file communication.hpp.

Referenced by GetGroupMaster(), GetGroupMasterRank(), and IAmMaster().

Definition at line 28 of file communication.hpp.

Referenced by GetGroupMasterRank(), GetNeighborRank(), and GetNumNeighbors().

MPI_Comm GroupTopology::MyComm [private]

Definition at line 18 of file communication.hpp.

Referenced by GetComm(), GroupTopology(), MyRank(), and NRanks().


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