Teuchos::MPISession Class Reference

This class provides methods for initializing, finalizing, and querying the global MPI session. More...

#include <Teuchos_MPISession.hpp>

List of all members.

Static Public Member Functions

void init (int *argc, void ***argv)
 Initializer, calls MPI_Init() if necessary.
int getRank ()
 Returns the process rank relative to MPI_COMM_WORLD.
int getNProc ()
 Returns the number of processors in MPI_COMM_WORLD.
void finalize ()
 Finalizer, calls MPI_Finalize() if necessary.

Static Private Attributes

int rank_ = 0
int nProc_ = 1


Detailed Description

This class provides methods for initializing, finalizing, and querying the global MPI session.

Definition at line 48 of file Teuchos_MPISession.hpp.


Member Function Documentation

void MPISession::init int *  argc,
void ***  argv
[static]
 

Initializer, calls MPI_Init() if necessary.

Definition at line 37 of file Teuchos_MPISession.cpp.

int Teuchos::MPISession::getRank  )  [inline, static]
 

Returns the process rank relative to MPI_COMM_WORLD.

Definition at line 55 of file Teuchos_MPISession.hpp.

int Teuchos::MPISession::getNProc  )  [inline, static]
 

Returns the number of processors in MPI_COMM_WORLD.

Definition at line 58 of file Teuchos_MPISession.hpp.

void MPISession::finalize  )  [static]
 

Finalizer, calls MPI_Finalize() if necessary.

Definition at line 81 of file Teuchos_MPISession.cpp.


Member Data Documentation

int MPISession::rank_ = 0 [static, private]
 

Definition at line 34 of file Teuchos_MPISession.cpp.

int MPISession::nProc_ = 1 [static, private]
 

Definition at line 35 of file Teuchos_MPISession.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:42:53 2008 for Teuchos - Trilinos Tools Package by doxygen 1.3.9.1