42 #ifndef TEUCHOS_DEFAULT_COMM_HPP
43 #define TEUCHOS_DEFAULT_COMM_HPP
46 #include "Teuchos_DefaultSerialComm.hpp"
48 # include "Teuchos_DefaultMpiComm.hpp"
79 template<
typename OrdinalType>
114 template<
typename OrdinalType>
128 template<
typename OrdinalType>
137 return defaultSerialComm_;
140 template<
typename OrdinalType>
144 template<
typename OrdinalType>
151 #endif // TEUCHOS_DEFAULT_COMM_HPP
static Teuchos::RCP< const Comm< OrdinalType > > getDefaultSerialComm(const Teuchos::RCP< const Comm< OrdinalType > > &comm)
Return a serial comm if the input comm is null.
Concrete serial communicator subclass.
static Teuchos::RCP< const Comm< OrdinalType > > getComm()
Return the default global communicator.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Return a default global communicator appropriate for the build.
Abstract interface for distributed-memory communication.
Smart reference counting pointer class for automatic garbage collection.
Implementation of Comm that uses MPI for communication.
Reference-counted pointer class and non-member templated function implementations.