10#ifndef MUELU_PERFUTILS_DECL_HPP
11#define MUELU_PERFUTILS_DECL_HPP
15#include <Teuchos_ParameterList.hpp>
17#include <Xpetra_Export_fwd.hpp>
18#include <Xpetra_Import_fwd.hpp>
19#include <Xpetra_Matrix_fwd.hpp>
25#define MueLu_sumAll(rcpComm, in, out) \
26 Teuchos::reduceAll(*rcpComm, Teuchos::REDUCE_SUM, in, Teuchos::outArg(out))
27#define MueLu_minAll(rcpComm, in, out) \
28 Teuchos::reduceAll(*rcpComm, Teuchos::REDUCE_MIN, in, Teuchos::outArg(out))
29#define MueLu_maxAll(rcpComm, in, out) \
30 Teuchos::reduceAll(*rcpComm, Teuchos::REDUCE_MAX, in, Teuchos::outArg(out))
37#undef MUELU_PERFUTILS_SHORT
41 static std::string
PrintMatrixInfo(
const Matrix& A,
const std::string& msgTag, RCP<const Teuchos::ParameterList> params = Teuchos::null);
43 static std::string
PrintImporterInfo(RCP<const Import> importer,
const std::string& msgTag);
45 static std::string
CommPattern(
const Matrix& A,
const std::string& msgTag, RCP<const Teuchos::ParameterList> params = Teuchos::null);
53#define MUELU_PERFUTILS_SHORT
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
static bool CheckMatrix(const Matrix &A)
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)
static std::string CommPattern(const Matrix &A, const std::string &msgTag, RCP< const Teuchos::ParameterList > params=Teuchos::null)
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode