EpetraExt::MultiMpiComm Class Reference

#include <EpetraExt_MultiMpiComm.h>

Inheritance diagram for EpetraExt::MultiMpiComm:

Inheritance graph
[legend]
List of all members.
 MultiMpiComm (MPI_Comm globalComm, int subDomainProcs, int numTimeSteps_=-1)
 MultiMpiComm constuctor.
 MultiMpiComm (const Epetra_MpiComm &Comm, int numTimeSteps_)
 MultiMpiComm constuctor, no parallelism over domains.
 MultiMpiComm (const MultiMpiComm &MMC)
 Copy constructor.
virtual ~MultiMpiComm ()
 Destructor.

Public Member Functions

Epetra_MpiCommSubDomainComm () const
 Get reference to split Communicator for sub-domain.
int NumSubDomains () const
 Return number of sub-domains that the global problem is split into.
int SubDomainRank () const
 Return integer [0:numSubDomains-1} corresponding to this sub-domain's rank.
int NumTimeStepsOnDomain () const
 Return number of time steps, first step number, on time domain.
int FirstTimeStepOnDomain () const
int NumTimeSteps () const
 Return total number of time steps.
void ResetNumTimeSteps (int numTimeSteps)
 Reset total number of time steps, allowing time steps per domain to.

Protected Attributes

Epetra_MpiCommsubComm
int numSubDomains
int subDomainRank
int numTimeSteps
int numTimeStepsOnDomain
int firstTimeStepOnDomain

Detailed Description

Definition at line 53 of file EpetraExt_MultiMpiComm.h.


Constructor & Destructor Documentation

EpetraExt::MultiMpiComm::MultiMpiComm ( MPI_Comm  globalComm,
int  subDomainProcs,
int  numTimeSteps_ = -1 
)

MultiMpiComm constuctor.

Creates a MultiMpiComm object and communicators for the global and sub- problems.

Parameters:
In globalComm - MPI communciator (usually MPI_COMM_WORLD)
In subDomainProcss - number of processors in each subdomain. This must divide evenly into the total number of processors of the globalComm.
In numTimeSteps (Default=-1) - Piece of partitioning data needed specifically for parallel space-time project, corresponding to the total number of time steps.

Definition at line 35 of file EpetraExt_MultiMpiComm.cpp.

EpetraExt::MultiMpiComm::MultiMpiComm ( const Epetra_MpiComm Comm,
int  numTimeSteps_ 
)

MultiMpiComm constuctor, no parallelism over domains.

Creates a MultiMpiComm object for the simple case of no parallelism over multiple steps.

Parameters:
In EpetraMpiComm - Epetra_MpiComm communciator
In numTimeSteps - Number of steps

Definition at line 73 of file EpetraExt_MultiMpiComm.cpp.

EpetraExt::MultiMpiComm::MultiMpiComm ( const MultiMpiComm MMC  ) 

Copy constructor.

Definition at line 82 of file EpetraExt_MultiMpiComm.cpp.

EpetraExt::MultiMpiComm::~MultiMpiComm (  )  [virtual]

Destructor.

Definition at line 91 of file EpetraExt_MultiMpiComm.cpp.


Member Function Documentation

Epetra_MpiComm& EpetraExt::MultiMpiComm::SubDomainComm (  )  const [inline]

Get reference to split Communicator for sub-domain.

Definition at line 88 of file EpetraExt_MultiMpiComm.h.

int EpetraExt::MultiMpiComm::NumSubDomains (  )  const [inline]

Return number of sub-domains that the global problem is split into.

Definition at line 91 of file EpetraExt_MultiMpiComm.h.

int EpetraExt::MultiMpiComm::SubDomainRank (  )  const [inline]

Return integer [0:numSubDomains-1} corresponding to this sub-domain's rank.

Definition at line 94 of file EpetraExt_MultiMpiComm.h.

int EpetraExt::MultiMpiComm::NumTimeStepsOnDomain (  )  const [inline]

Return number of time steps, first step number, on time domain.

Definition at line 97 of file EpetraExt_MultiMpiComm.h.

int EpetraExt::MultiMpiComm::FirstTimeStepOnDomain (  )  const [inline]

Definition at line 98 of file EpetraExt_MultiMpiComm.h.

int EpetraExt::MultiMpiComm::NumTimeSteps (  )  const [inline]

Return total number of time steps.

Definition at line 101 of file EpetraExt_MultiMpiComm.h.

void EpetraExt::MultiMpiComm::ResetNumTimeSteps ( int  numTimeSteps  ) 

Reset total number of time steps, allowing time steps per domain to.

Definition at line 96 of file EpetraExt_MultiMpiComm.cpp.


Member Data Documentation

Epetra_MpiComm* EpetraExt::MultiMpiComm::subComm [protected]

Definition at line 109 of file EpetraExt_MultiMpiComm.h.

int EpetraExt::MultiMpiComm::numSubDomains [protected]

Definition at line 110 of file EpetraExt_MultiMpiComm.h.

int EpetraExt::MultiMpiComm::subDomainRank [protected]

Definition at line 111 of file EpetraExt_MultiMpiComm.h.

int EpetraExt::MultiMpiComm::numTimeSteps [protected]

Definition at line 112 of file EpetraExt_MultiMpiComm.h.

int EpetraExt::MultiMpiComm::numTimeStepsOnDomain [protected]

Definition at line 113 of file EpetraExt_MultiMpiComm.h.

int EpetraExt::MultiMpiComm::firstTimeStepOnDomain [protected]

Definition at line 114 of file EpetraExt_MultiMpiComm.h.


The documentation for this class was generated from the following files:
Generated on Tue Oct 20 12:45:33 2009 for EpetraExt by doxygen 1.4.7