IODA Bundle
ChangeVarTLADQG.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2017-2018 UCAR.
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  */
7 
8 #ifndef QG_MODEL_CHANGEVARTLADQG_H_
9 #define QG_MODEL_CHANGEVARTLADQG_H_
10 
11 #include <ostream>
12 #include <string>
13 
14 #include "oops/util/Printable.h"
15 
16 #include "oops/qg/QgFortran.h"
17 
18 // Forward declarations
19 namespace eckit {
20  class Configuration;
21 }
22 
23 namespace qg {
24  class GeometryQG;
25  class StateQG;
26  class IncrementQG;
27 
28 // -----------------------------------------------------------------------------
29 /// QG linear change of variable
30 
31 class ChangeVarTLADQG: public util::Printable {
32  public:
33  static const std::string classname() {return "qg::ChangeVarQG";}
34 
35  ChangeVarTLADQG(const StateQG &, const StateQG &, const GeometryQG &,
36  const eckit::Configuration &);
38 
39 /// Perform linear transforms
40  void multiply(const IncrementQG &, IncrementQG &) const;
41  void multiplyInverse(const IncrementQG &, IncrementQG &) const;
42  void multiplyAD(const IncrementQG &, IncrementQG &) const;
43  void multiplyInverseAD(const IncrementQG &, IncrementQG &) const;
44 
45  private:
46  void print(std::ostream &) const override;
47 };
48 // -----------------------------------------------------------------------------
49 
50 } // namespace qg
51 #endif // QG_MODEL_CHANGEVARTLADQG_H_
QG linear change of variable.
void multiply(const IncrementQG &, IncrementQG &) const
Perform linear transforms.
void multiplyInverse(const IncrementQG &, IncrementQG &) const
ChangeVarTLADQG(const StateQG &, const StateQG &, const GeometryQG &, const eckit::Configuration &)
void print(std::ostream &) const override
void multiplyInverseAD(const IncrementQG &, IncrementQG &) const
void multiplyAD(const IncrementQG &, IncrementQG &) const
static const std::string classname()
GeometryQG handles geometry for QG model.
Definition: GeometryQG.h:58
Increment Class: Difference between two states.
Definition: IncrementQG.h:64
QG model state.
Definition: StateQG.h:42
The namespace for the qg model.