10#include "Teko_BlockPreconditionerFactory.hpp"
12#include "Teko_Preconditioner.hpp"
13#include "Teko_InverseLibrary.hpp"
15#include "Thyra_DefaultPreconditioner.hpp"
26 RCP<LinearOpBase<double> > loA = Teuchos::rcp_const_cast<Thyra::LinearOpBase<double> >(lo);
27 BlockedLinearOp A = Teuchos::rcp_dynamic_cast<Thyra::PhysicallyBlockedLinearOpBase<double> >(loA);
36 const Thyra::LinearOpSourceBase<double> &fwdOpSrc)
const {
37 RCP<const Thyra::PhysicallyBlockedLinearOpBase<double> > A =
38 Teuchos::rcp_dynamic_cast<const Thyra::PhysicallyBlockedLinearOpBase<double> >(
40 return A != Teuchos::null;
virtual LinearOp buildPreconditionerOperator(BlockedLinearOp &blo, BlockPreconditionerState &state) const =0
Function that is called to build the preconditioner for the linear operator that is passed in.
bool isCompatible(const Thyra::LinearOpSourceBase< double > &fwdOpSrc) const
is this operator compatiable with the preconditioner factory?
An implementation of a state object for block preconditioners.
An implementation of a state object preconditioners.
virtual void setInitialized(bool init=true)