MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_PerfUtils_decl.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// MueLu: A package for multigrid based preconditioning
4
//
5
// Copyright 2012 NTESS and the MueLu contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef MUELU_PERFUTILS_DECL_HPP
11
#define MUELU_PERFUTILS_DECL_HPP
12
13
#include "
MueLu_ConfigDefs.hpp
"
14
15
#include <Teuchos_ParameterList.hpp>
16
17
#include <Xpetra_Export_fwd.hpp>
18
#include <Xpetra_Import_fwd.hpp>
19
#include <Xpetra_Matrix_fwd.hpp>
20
21
#include "
MueLu_PerfUtils_fwd.hpp
"
22
23
namespace
MueLu
{
24
// MPI helpers
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))
31
32
template
<
class
Scalar
,
33
class
LocalOrdinal
=
DefaultLocalOrdinal
,
34
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
35
class
Node
=
DefaultNode
>
36
class
PerfUtils
{
37
#undef MUELU_PERFUTILS_SHORT
38
#include "
MueLu_UseShortNames.hpp
"
39
40
public
:
41
static
std::string
PrintMatrixInfo
(
const
Matrix& A,
const
std::string& msgTag, RCP<const Teuchos::ParameterList> params = Teuchos::null);
42
43
static
std::string
PrintImporterInfo
(RCP<const Import> importer,
const
std::string& msgTag);
44
45
static
std::string
CommPattern
(
const
Matrix& A,
const
std::string& msgTag, RCP<const Teuchos::ParameterList> params = Teuchos::null);
46
47
private
:
48
static
bool
CheckMatrix
(
const
Matrix& A);
49
};
50
51
}
// namespace MueLu
52
53
#define MUELU_PERFUTILS_SHORT
54
#endif
// MUELU_PERFUTILS_DECL_HPP
MueLu_ConfigDefs.hpp
MueLu_PerfUtils_fwd.hpp
LocalOrdinal
MueLu::DefaultLocalOrdinal LocalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:13
Scalar
MueLu::DefaultScalar Scalar
Definition
MueLu_UseDefaultTypes.hpp:12
GlobalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:14
Node
MueLu::DefaultNode Node
Definition
MueLu_UseDefaultTypes.hpp:15
MueLu_UseShortNames.hpp
MueLu::PerfUtils
Definition
MueLu_PerfUtils_decl.hpp:36
MueLu::PerfUtils::CheckMatrix
static bool CheckMatrix(const Matrix &A)
Definition
MueLu_PerfUtils_def.hpp:398
MueLu::PerfUtils::PrintImporterInfo
static std::string PrintImporterInfo(RCP< const Import > importer, const std::string &msgTag)
Definition
MueLu_PerfUtils_def.hpp:296
MueLu::PerfUtils::PrintMatrixInfo
static std::string PrintMatrixInfo(const Matrix &A, const std::string &msgTag, RCP< const Teuchos::ParameterList > params=Teuchos::null)
Definition
MueLu_PerfUtils_def.hpp:92
MueLu::PerfUtils::CommPattern
static std::string CommPattern(const Matrix &A, const std::string &msgTag, RCP< const Teuchos::ParameterList > params=Teuchos::null)
Definition
MueLu_PerfUtils_def.hpp:357
MueLu
Namespace for MueLu classes and methods.
Definition
MueLu_BrickAggregationFactory_decl.hpp:42
MueLu::DefaultNode
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Definition
MueLu_Details_DefaultTypes.hpp:32
MueLu::DefaultGlobalOrdinal
int DefaultGlobalOrdinal
Definition
MueLu_Details_DefaultTypes.hpp:29
MueLu::DefaultLocalOrdinal
int DefaultLocalOrdinal
Definition
MueLu_Details_DefaultTypes.hpp:22
src
Utils
MueLu_PerfUtils_decl.hpp
Generated by
1.17.0