FV3 Bundle
ModelBiasIncrement.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2009-2016 ECMWF.
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  * In applying this licence, ECMWF does not waive the privileges and immunities
7  * granted to it by virtue of its status as an intergovernmental organisation nor
8  * does it submit to any jurisdiction.
9  */
10 
11 #ifndef QG_MODEL_MODELBIASINCREMENT_H_
12 #define QG_MODEL_MODELBIASINCREMENT_H_
13 
14 #include <iostream>
15 
16 #include "oops/util/Printable.h"
17 
18 namespace eckit {
19  class Configuration;
20 }
21 
22 namespace qg {
23  class ModelBias;
24  class ModelBiasCovariance;
25  class GeometryQG;
26 
27 // -----------------------------------------------------------------------------
28 
29 class ModelBiasIncrement : public util::Printable {
30  public:
31 /// Constructor, destructor
32  ModelBiasIncrement(const GeometryQG &, const eckit::Configuration &) {}
33  ModelBiasIncrement(const ModelBiasIncrement &, const bool) {}
34  ModelBiasIncrement(const ModelBiasIncrement &, const eckit::Configuration &) {}
36 
37 /// Linear algebra operators
38  void diff(const ModelBias &, const ModelBias &) {}
39  void zero() {}
40  ModelBiasIncrement & operator=(const ModelBiasIncrement &) {return *this;}
43  ModelBiasIncrement & operator*=(const double) {return *this;}
44  void axpy(const double, const ModelBiasIncrement &) {}
45  double dot_product_with(const ModelBiasIncrement &) const {return 0.0;}
46 
47 /// I/O and diagnostics
48  void read(const eckit::Configuration &) {}
49  void write(const eckit::Configuration &) const {}
50  double norm() const {return 0.0;}
51 
52  private:
53  explicit ModelBiasIncrement(const ModelBiasCovariance &);
54  void print(std::ostream & os) const {}
55 };
56 
57 // -----------------------------------------------------------------------------
58 
59 } // namespace qg
60 
61 #endif // QG_MODEL_MODELBIASINCREMENT_H_
Model error for the QG model.
void read(const eckit::Configuration &)
I/O and diagnostics.
ModelBiasIncrement & operator*=(const double)
ModelBiasIncrement & operator=(const ModelBiasIncrement &)
ModelBiasIncrement & operator+=(const ModelBiasIncrement &)
double dot_product_with(const ModelBiasIncrement &) const
void write(const eckit::Configuration &) const
ModelBiasIncrement(const ModelBiasIncrement &, const eckit::Configuration &)
ModelBiasIncrement(const ModelBiasIncrement &, const bool)
void diff(const ModelBias &, const ModelBias &)
Linear algebra operators.
void print(std::ostream &os) const
void axpy(const double, const ModelBiasIncrement &)
GeometryQG handles geometry for QG model.
Definition: GeometryQG.h:33
The namespace for the qg model.
ModelBiasIncrement(const GeometryQG &, const eckit::Configuration &)
Constructor, destructor.
ModelBiasIncrement & operator-=(const ModelBiasIncrement &)