FV3 Bundle
oops::DRIPCGMinimizer< MODEL > Class Template Reference

Derber-Rosati IPCG Minimizer. More...

#include <DRIPCGMinimizer.h>

Inheritance diagram for oops::DRIPCGMinimizer< MODEL >:
[legend]
Collaboration diagram for oops::DRIPCGMinimizer< MODEL >:
[legend]

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_
 

Detailed Description

template<typename MODEL>
class oops::DRIPCGMinimizer< MODEL >

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:

  • x = starting point, \( X_0 \).
  • xh = \( B^{-1} x_0\).
  • b = right hand side.
  • B = \( B \).
  • C = \( C \).
  • precond = preconditioner \( F_k \approx (AB)^{-1} \).

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:

  • void multiply(const VECTOR&, VECTOR&) const

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.

Member Typedef Documentation

◆ Bmat_

template<typename MODEL >
typedef BMatrix<MODEL> oops::DRIPCGMinimizer< MODEL >::Bmat_
private

Definition at line 74 of file DRIPCGMinimizer.h.

◆ CostFct_

template<typename MODEL >
typedef CostFunction<MODEL> oops::DRIPCGMinimizer< MODEL >::CostFct_
private

Definition at line 75 of file DRIPCGMinimizer.h.

◆ CtrlInc_

template<typename MODEL >
typedef ControlIncrement<MODEL> oops::DRIPCGMinimizer< MODEL >::CtrlInc_
private

Definition at line 76 of file DRIPCGMinimizer.h.

◆ HtRinvH_

template<typename MODEL >
typedef HtRinvHMatrix<MODEL> oops::DRIPCGMinimizer< MODEL >::HtRinvH_
private

Definition at line 77 of file DRIPCGMinimizer.h.

Constructor & Destructor Documentation

◆ DRIPCGMinimizer()

template<typename MODEL >
oops::DRIPCGMinimizer< MODEL >::DRIPCGMinimizer ( const eckit::Configuration &  conf,
const CostFct_ J 
)

Definition at line 94 of file DRIPCGMinimizer.h.

◆ ~DRIPCGMinimizer()

template<typename MODEL >
oops::DRIPCGMinimizer< MODEL >::~DRIPCGMinimizer ( )
inline

Definition at line 82 of file DRIPCGMinimizer.h.

Member Function Documentation

◆ classname()

template<typename MODEL >
const std::string oops::DRIPCGMinimizer< MODEL >::classname ( ) const
inlineoverridevirtual

Implements oops::DRMinimizer< MODEL >.

Definition at line 80 of file DRIPCGMinimizer.h.

◆ solve()

template<typename MODEL >
double oops::DRIPCGMinimizer< MODEL >::solve ( CtrlInc_ xx,
CtrlInc_ xh,
CtrlInc_ rr,
const Bmat_ B,
const HtRinvH_ HtRinvH,
const double  costJ0Jb,
const double  costJ0JoJc,
const int  maxiter,
const double  tolerance 
)
overrideprivatevirtual

Implements oops::DRMinimizer< MODEL >.

Definition at line 101 of file DRIPCGMinimizer.h.

Here is the call graph for this function:

Member Data Documentation

◆ lmp_

template<typename MODEL >
QNewtonLMP<CtrlInc_, Bmat_> oops::DRIPCGMinimizer< MODEL >::lmp_
private

Definition at line 88 of file DRIPCGMinimizer.h.


The documentation for this class was generated from the following file: