11#include "Teuchos_Comm.hpp"
34 const Teuchos::Comm<int>&
comm2) {
37 using Teuchos::MpiComm;
39 using Teuchos::rcp_dynamic_cast;
40 using Teuchos::rcpFromRef;
59 "congruent: MPI_Comm_compare failed");
68std::unique_ptr<std::string>
71 std::ostringstream
os;
73 return std::unique_ptr<std::string>(
new std::string(
os.str()));
76std::unique_ptr<std::string>
79 const int myRank = comm ==
nullptr ? -1 : comm->getRank();
84std::unique_ptr<std::string>
88 const int myRank = comm ==
nullptr ? -1 : comm->getRank();
89 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.