Teuchos - Trilinos Tools Package Version of the Day
Static Public Member Functions
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

static Teuchos::RCP< const
Comm< Ordinal > > 
getComm ()
 Return the default glocal communicator.
static Teuchos::RCP< const
Comm< Ordinal > > 
getDefaultSerialComm (const Teuchos::RCP< 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 61 of file Teuchos_DefaultComm.hpp.


Member Function Documentation

template<typename Ordinal >
Teuchos::RCP< 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 88 of file Teuchos_DefaultComm.hpp.

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

Return a serial comm if the input comm in null.

Definition at line 102 of file Teuchos_DefaultComm.hpp.


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