Teuchos::DefaultComm< Ordinal > Class Template Reference

Returns a default global communicator appropriate for the enviroment. More...

#include <Teuchos_DefaultComm.hpp>

List of all members.

Static Public Member Functions

Teuchos::RefCountPtr< const
Comm< Ordinal > > 
getComm ()
 Return the default glocal communicator.
Teuchos::RefCountPtr< const
Comm< Ordinal > > 
getDefaultSerialComm (const Teuchos::RefCountPtr< const Comm< Ordinal > > &comm)
 Return a serial comm if the input comm in null.


Detailed Description

template<typename Ordinal>
class Teuchos::DefaultComm< Ordinal >

Returns a default global communicator appropriate for the enviroment.

If HAVE_MPI is defined, then an instance of MpiComm will be created from MPI_COMM_WORLD. Otherwise, a SerialComm is returned.

Definition at line 48 of file Teuchos_DefaultComm.hpp.


Member Function Documentation

template<typename Ordinal>
Teuchos::RefCountPtr< const Teuchos::Comm< Ordinal > > Teuchos::DefaultComm< Ordinal >::getComm  )  [static]
 

Return the default glocal communicator.

Note that this function can not be called until after MPI has been initialized if MPI is expected!

Definition at line 75 of file Teuchos_DefaultComm.hpp.

template<typename Ordinal>
Teuchos::RefCountPtr< const Teuchos::Comm< Ordinal > > Teuchos::DefaultComm< Ordinal >::getDefaultSerialComm const Teuchos::RefCountPtr< const Comm< Ordinal > > &  comm  )  [static]
 

Return a serial comm if the input comm in null.

Definition at line 89 of file Teuchos_DefaultComm.hpp.


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