41#include "Teuchos_Comm.hpp"
65 const Teuchos::Comm<int>&
comm2)
70 using Teuchos::rcpFromRef;
71 using Teuchos::MpiComm;
72 using Teuchos::rcp_dynamic_cast;
91 "congruent: MPI_Comm_compare failed");
100std::unique_ptr<std::string>
104 std::ostringstream
os;
106 return std::unique_ptr<std::string>(
new std::string(
os.str()));
109std::unique_ptr<std::string>
113 const int myRank = comm ==
nullptr ? -1 : comm->getRank();
118std::unique_ptr<std::string>
123 const int myRank = comm ==
nullptr ? -1 : comm->getRank();
124 const std::string
prefix = std::string(
"Tpetra::") +
Stand-alone utility functions and macros.
Struct that holds views of the contents of a CrsMatrix.
Implementation details of Tpetra.
std::unique_ptr< std::string > createPrefix(const int myRank, const char prefix[])
Create string prefix for each line of verbose output.
bool congruent(const Teuchos::Comm< int > &comm1, const Teuchos::Comm< int > &comm2)
Whether the two communicators are congruent.
Namespace Tpetra contains the class and methods constituting the Tpetra library.