FV3 Bundle
|
Derber-Rosati IPCG Minimizer. More...
#include <DRIPCGMinimizer.h>
Public Member Functions | |
const std::string | classname () const override |
DRIPCGMinimizer (const eckit::Configuration &, const CostFct_ &) | |
~DRIPCGMinimizer () | |
Public Member Functions inherited from oops::DRMinimizer< MODEL > | |
DRMinimizer (const CostFct_ &J) | |
~DRMinimizer () | |
Public Member Functions inherited from oops::Minimizer< MODEL > | |
Minimizer (const CostFct_ &J) | |
virtual | ~Minimizer () |
ControlIncrement< MODEL > * | minimize (const eckit::Configuration &) |
Private Types | |
typedef BMatrix< MODEL > | Bmat_ |
typedef CostFunction< MODEL > | CostFct_ |
typedef ControlIncrement< MODEL > | CtrlInc_ |
typedef HtRinvHMatrix< MODEL > | HtRinvH_ |
Private Member Functions | |
double | solve (CtrlInc_ &, CtrlInc_ &, CtrlInc_ &, const Bmat_ &, const HtRinvH_ &, const double, const double, const int, const double) override |
Private Attributes | |
QNewtonLMP< CtrlInc_, Bmat_ > | lmp_ |
Derber-Rosati IPCG Minimizer.
Derber-Rosati Inexact-Preconditioned Conjugate Gradients solver.
This solver is based on the Golub-Ye Inexact-Preconditioned Conjugate Gradients solver for Ax=b (G.H. Golub and Q. Ye 1999/00, SIAM J. Sci. Comput. 21(4) 1305-1320), and on the Derber and Rosati double PCG algorithm (J. Derber and A. Rosati, 1989, J. Phys. Oceanog. 1333-1347). It solves \( Ax=b\) for the particular case \( A=B^{-1}+C\), without requiring the application of \( B^{-1}\).
A must be square, symmetric, positive definite.
A preconditioner must be supplied that, given a vector q, returns an approximation to \( (AB)^{-1} q\). The preconditioner can be variable. Note that the traditional \( B\)-preconditioning corresponds to precond= \(I\).
On entry:
On exit, x will contain the solution \( x \) and xh will contain \( B^{-1} x\). The return value is the achieved reduction in residual norm.
Iteration will stop if the maximum iteration limit "maxiter" is reached or if the residual norm reduces by a factor of "tolerance".
Each of BMATRIX, CMATRIX and PMATRIX must implement a method:
which applies the matrix to the first argument, and returns the matrix-vector product in the second. (Note: the const is optonal, but recommended.)
Definition at line 73 of file DRIPCGMinimizer.h.
|
private |
Definition at line 74 of file DRIPCGMinimizer.h.
|
private |
Definition at line 75 of file DRIPCGMinimizer.h.
|
private |
Definition at line 76 of file DRIPCGMinimizer.h.
|
private |
Definition at line 77 of file DRIPCGMinimizer.h.
oops::DRIPCGMinimizer< MODEL >::DRIPCGMinimizer | ( | const eckit::Configuration & | conf, |
const CostFct_ & | J | ||
) |
Definition at line 94 of file DRIPCGMinimizer.h.
|
inline |
Definition at line 82 of file DRIPCGMinimizer.h.
|
inlineoverridevirtual |
Implements oops::DRMinimizer< MODEL >.
Definition at line 80 of file DRIPCGMinimizer.h.
|
overrideprivatevirtual |
Implements oops::DRMinimizer< MODEL >.
Definition at line 101 of file DRIPCGMinimizer.h.
|
private |
Definition at line 88 of file DRIPCGMinimizer.h.