46 #ifndef MUELU_PERFUTILS_DECL_HPP
47 #define MUELU_PERFUTILS_DECL_HPP
61 #define MueLu_sumAll(rcpComm, in, out) \
62 Teuchos::reduceAll(*rcpComm, Teuchos::REDUCE_SUM, in, Teuchos::outArg(out))
63 #define MueLu_minAll(rcpComm, in, out) \
64 Teuchos::reduceAll(*rcpComm, Teuchos::REDUCE_MIN, in, Teuchos::outArg(out))
65 #define MueLu_maxAll(rcpComm, in, out) \
66 Teuchos::reduceAll(*rcpComm, Teuchos::REDUCE_MAX, in, Teuchos::outArg(out))
68 template <
class Scalar,
69 class LocalOrdinal = int,
70 class GlobalOrdinal = LocalOrdinal,
73 #undef MUELU_PERFUTILS_SHORT
77 static std::string
PrintMatrixInfo(
const Matrix& A,
const std::string& msgTag, RCP<const Teuchos::ParameterList> params = Teuchos::null);
79 static std::string
PrintImporterInfo(RCP<const Import> importer,
const std::string& msgTag);
81 static std::string
CommPattern(
const Matrix& A,
const std::string& msgTag, RCP<const Teuchos::ParameterList> params = Teuchos::null);
89 #define MUELU_PERFUTILS_SHORT
90 #endif // MUELU_PERFUTILS_DECL_HPP
static bool CheckMatrix(const Matrix &A)
static std::string CommPattern(const Matrix &A, const std::string &msgTag, RCP< const Teuchos::ParameterList > params=Teuchos::null)
static std::string PrintImporterInfo(RCP< const Import > importer, const std::string &msgTag)
static std::string PrintMatrixInfo(const Matrix &A, const std::string &msgTag, RCP< const Teuchos::ParameterList > params=Teuchos::null)