10#ifndef TEUCHOS_MPI_COMM_HPP
11#define TEUCHOS_MPI_COMM_HPP
21#ifdef HAVE_TEUCHOS_MPI
23#include "Teuchos_Comm.hpp"
24#include "Teuchos_CommUtilities.hpp"
26#include "Teuchos_OpaqueWrapper.hpp"
28#include "Teuchos_SerializationTraitsHelpers.hpp"
29#include "Teuchos_Workspace.hpp"
32#include "Teuchos_Assert.hpp"
35#include "Teuchos_DefaultMpiComm_decl.hpp"
40#ifdef TEUCHOS_MPI_COMM_DUMP
41# include "Teuchos_VerboseObject.hpp"
47TEUCHOSCOMM_LIB_DLL_EXPORT std::string
48mpiErrorCodeToString (
const int err);
64 TEUCHOSCOMM_LIB_DLL_EXPORT
void safeCommFree (MPI_Comm* comm);
70 TEUCHOSCOMM_LIB_DLL_EXPORT
int setCommErrhandler (MPI_Comm comm, MPI_Errhandler handler);
74#ifdef TEUCHOS_MPI_COMM_DUMP
75template<
typename Ordinal,
typename T>
77 const std::string &funcName,
const std::string &buffName
78 ,
const Ordinal bytes,
const T buff[]
85 <<
"\n" << funcName <<
"::" << buffName <<
":\n";
87 for( Ordinal i = 0; i < bytes; ++i ) {
88 *out << buffName <<
"[" << i <<
"] = '" << buff[i] <<
"'\n";
Teuchos header file which uses auto-configuration information to include necessary C++ headers.
Implementation detail of Teuchos' MPI wrapper.
Defines basic traits for the ordinal field type.
Defines basic traits returning the name of a type in a portable and readable way.
Definition of Teuchos::as, for conversions between types.
Smart reference counting pointer class for automatic garbage collection.
static RCP< FancyOStream > getDefaultOStream()
Get the default output stream object.
Tabbing class for helping to create formated, indented output for a basic_FancyOStream object.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Teuchos implementation details.