#include <Meros_SIMPLEPreconditionerFactory.h>
Public Member Functions | |
Constructors/initializers/accessors | |
SIMPLEPreconditionerFactory () | |
Default constructor. | |
SIMPLEPreconditionerFactory (RCP< const LinearOpWithSolveFactoryBase< double > > const &FSolveStrategy, RCP< const LinearOpWithSolveFactoryBase< double > > const &SchurSolveStrategy) | |
Constructor for Pressure Convection-Diffusion preconditioner factory. Takes an AztecOO parameter list for the F (convection-diffusion) solve and the B*Bt solve. | |
Overridden from PreconditionerFactoryBase | |
bool | isCompatible (const LinearOpSourceBase< double > &fwdOpSrc) const |
Check that a LinearOperator object is compatible with *this factory object. | |
RCP< PreconditionerBase< double > > | createPrec () const |
Create an (uninitialized) LinearOperator object to be initalized as the preconditioner later in this->initializePrecOp() . | |
void | initializePrec (const RCP< const LinearOpSourceBase< double > > &fwdOpSrc, PreconditionerBase< double > *precOp, const ESupportSolveUse supportSolveUse=SUPPORT_SOLVE_UNSPECIFIED) const |
Initialize the SIMPLEPreconditioner object. | |
void | uninitializePrec (PreconditionerBase< double > *prec, RCP< const LinearOpSourceBase< double > > *fwdOpSrc, ESupportSolveUse *supportSolveUse=NULL) const |
Uninitialize the SIMPLEPreconditioner object. | |
Overridden from ParameterListAcceptor | |
void | setParameterList (RCP< ParameterList > const ¶mList) |
| |
RCP< ParameterList > | getNonconstParameterList () |
| |
RCP< ParameterList > | unsetParameterList () |
| |
RCP< const ParameterList > | getParameterList () const |
| |
RCP< const Teuchos::ParameterList > | getValidParameters () const |
| |
Private Attributes | |
RCP< ParameterList > | validPL_ |
RCP< ParameterList > | paramList_ |
RCP< const LinearOpWithSolveFactoryBase < double > > | FSolveStrategy_ |
RCP< const LinearOpWithSolveFactoryBase < double > > | SchurSolveStrategy_ |
Note that the SIMPLE preconditioner assumes that we are using a stable discretization an a uniform mesh.
The LDU factors of a saddle point system are given as follows:
where is the Schur complement
. A pressure convection-diffusion style preconditioner is then given by
where for is an approximation to the Schur complement S.
To apply the above preconditioner, we need a linear solver on the (0,0) block and an approximation to the inverse of the Schur complement.
To build a concrete preconditioner object, we will also need a 2x2 block Thyra matrix or the 4 separate blocks as either Thyra or Epetra matrices. If Thyra, assumes each block is a Thyra EpetraMatrix.
Meros::SIMPLEPreconditionerFactory::SIMPLEPreconditionerFactory | ( | ) |
Default constructor.
SIMPLEPreconditionerFactory::SIMPLEPreconditionerFactory | ( | RCP< const LinearOpWithSolveFactoryBase< double > > const & | FSolveStrategy, | |
RCP< const LinearOpWithSolveFactoryBase< double > > const & | SchurSolveStrategy | |||
) |
Constructor for Pressure Convection-Diffusion preconditioner factory. Takes an AztecOO parameter list for the F (convection-diffusion) solve and the B*Bt solve.
RCP< PreconditionerBase< double > > SIMPLEPreconditionerFactory::createPrec | ( | ) | const |
Create an (uninitialized) LinearOperator
object to be initalized as the preconditioner later in this->initializePrecOp()
.
Note that on output return->domain().get()==NULL
may be true which means that the operator is not fully initialized. In fact, the output operator object is not guaranteed to be fully initialized until after it is passed through this->initializePrecOp()
.
Teuchos::RCP< Teuchos::ParameterList > SIMPLEPreconditionerFactory::getNonconstParameterList | ( | ) |
Teuchos::RCP< const Teuchos::ParameterList > SIMPLEPreconditionerFactory::getParameterList | ( | ) | const |
Teuchos::RCP< const Teuchos::ParameterList > SIMPLEPreconditionerFactory::getValidParameters | ( | ) | const |
void SIMPLEPreconditionerFactory::initializePrec | ( | const RCP< const LinearOpSourceBase< double > > & | fwdOpSrc, | |
PreconditionerBase< double > * | precOp, | |||
const ESupportSolveUse | supportSolveUse = SUPPORT_SOLVE_UNSPECIFIED | |||
) | const |
Initialize the SIMPLEPreconditioner object.
bool SIMPLEPreconditionerFactory::isCompatible | ( | const LinearOpSourceBase< double > & | fwdOpSrc | ) | const |
Check that a LinearOperator
object is compatible with *this
factory object.
void Meros::SIMPLEPreconditionerFactory::setParameterList | ( | RCP< ParameterList > const & | paramList | ) |
void SIMPLEPreconditionerFactory::uninitializePrec | ( | PreconditionerBase< double > * | prec, | |
RCP< const LinearOpSourceBase< double > > * | fwdOpSrc, | |||
ESupportSolveUse * | supportSolveUse = NULL | |||
) | const |
Uninitialize the SIMPLEPreconditioner object.
Teuchos::RCP< Teuchos::ParameterList > SIMPLEPreconditionerFactory::unsetParameterList | ( | ) |
RCP<const LinearOpWithSolveFactoryBase<double> > Meros::SIMPLEPreconditionerFactory::FSolveStrategy_ [private] |
RCP<ParameterList> Meros::SIMPLEPreconditionerFactory::paramList_ [private] |
Referenced by getNonconstParameterList(), getParameterList(), and unsetParameterList().
RCP<const LinearOpWithSolveFactoryBase<double> > Meros::SIMPLEPreconditionerFactory::SchurSolveStrategy_ [private] |
RCP<ParameterList> Meros::SIMPLEPreconditionerFactory::validPL_ [mutable, private] |
Referenced by getValidParameters().