46 #ifndef MUELU_RAPSHIFTFACTORY_DECL_HPP 47 #define MUELU_RAPSHIFTFACTORY_DECL_HPP 74 template <
class Scalar =
double,
class LocalOrdinal =
int,
class GlobalOrdinal = LocalOrdinal,
class Node = KokkosClassic::DefaultNode::DefaultNodeType>
76 #undef MUELU_RAPSHIFTFACTORY_SHORT 169 #define MUELU_RAPSHIFTFACTORY_SHORT 170 #endif // MUELU_RAPSHIFTFACTORY_DECL_HPP Factory for building coarse grid matrices, when the matrix is of the form K+a*M. Useful when you want...
void CheckMainDiagonal(RCP< Matrix > &Ac) const
Base class for factories that use two levels (fineLevel and coarseLevel).
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
Namespace for MueLu classes and methods.
bool implicitTranspose_
If true, the action of the restriction operator action is implicitly defined by the transpose of the ...
size_t NumTransferFactories() const
Returns number of transfer factories.
void SetPlausibilityCheck(bool const &checkAc)
Indicate that a simple plausibility check shall be done for Ac after building RAP.
std::vector< RCP< const FactoryBase > > transferFacts_
list of user-defined transfer Factories
Class that holds all level-specific information.
virtual ~RAPShiftFactory()
void AddTransferFactory(const RCP< const FactoryBase > &factory)
Add transfer factory in the end of list of transfer factories in RepartitionAcFactory.
void SetShifts(std::vector< Scalar > &shifts)
bool repairZeroDiagonals_
void SetImplicitTranspose(bool const &implicit)
Indicate that the restriction operator action should be implicitly defined by the transpose of the pr...
std::vector< Scalar > shifts_
void SetRepairZeroDiagonal(bool const &repairZeroDiagonals)
Indicate that zero entries on the diagonal of Ac shall be repaired (i.e. if A(i,i) == 0...
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.