46#ifndef MUELU_BLOCKEDRAPFACTORY_DECL_HPP
47#define MUELU_BLOCKEDRAPFACTORY_DECL_HPP
49#include <Xpetra_Matrix_fwd.hpp>
50#include <Xpetra_CrsMatrix_fwd.hpp>
51#include <Xpetra_CrsMatrixWrap_fwd.hpp>
52#include <Xpetra_BlockedCrsMatrix_fwd.hpp>
53#include <Xpetra_MatrixFactory_fwd.hpp>
74#undef MUELU_BLOCKEDRAPFACTORY_SHORT
133 static void CheckMainDiagonal(RCP<BlockedCrsMatrix> & bAc,
bool repairZeroDiagonals =
false);
155#define MUELU_BLOCKEDRAPFACTORY_SHORT
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Factory for building coarse matrices.
void SetPlausibilityCheck(bool const &check)
Indicate that a simple plausibility check shall be done for Ac after building RAP.
void SetRepairZeroDiagonal(bool const &repair)
Indicate that zero entries on the diagonal of Ac shall be repaired (i.e. if A(i,i) == 0....
size_t NumTransferFactories() const
Returns number of transfer factories.
static void CheckMainDiagonal(RCP< BlockedCrsMatrix > &bAc, bool repairZeroDiagonals=false)
virtual ~BlockedRAPFactory()=default
void Build(Level &fineLevel, Level &coarseLevel) const override
Build an object with this factory.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const override
Input.
std::vector< RCP< const FactoryBase > > transferFacts_
list of user-defined transfer Factories
RCP< const ParameterList > GetValidParameterList() const override
Return a const parameter list of valid parameters that setParameterList() will accept.
bool repairZeroDiagonals_
void AddTransferFactory(const RCP< const FactoryBase > &factory)
Add transfer factory in the end of list of transfer factories in RepartitionAcFactory.
Class that holds all level-specific information.
Base class for factories that use two levels (fineLevel and coarseLevel).
Namespace for MueLu classes and methods.
KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar