#include <Teuchos_DefaultComm.hpp>
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. |
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.
Teuchos::RCP< const Teuchos::Comm< Ordinal > > Teuchos::DefaultComm< Ordinal >::getComm | ( | ) | [inline, 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.
Teuchos::RCP< const Teuchos::Comm< Ordinal > > Teuchos::DefaultComm< Ordinal >::getDefaultSerialComm | ( | const Teuchos::RCP< const Comm< Ordinal > > & | comm | ) | [inline, static] |
Return a serial comm if the input comm in null.
Definition at line 89 of file Teuchos_DefaultComm.hpp.