OOPS
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 #include <vector>
16 
17 #include "oops/util/Printable.h"
18 #include "oops/util/Serializable.h"
19 
20 namespace eckit {
21  class Configuration;
22 }
23 
24 namespace qg {
25  class ModelBias;
26  class ModelBiasCovariance;
27  class GeometryQG;
28 
29 // -----------------------------------------------------------------------------
30 
31 class ModelBiasIncrement : public util::Printable,
32  public util::Serializable {
33  public:
34 /// Constructor, destructor
35  ModelBiasIncrement(const GeometryQG &, const eckit::Configuration &) {}
36  ModelBiasIncrement(const ModelBiasIncrement &, const bool) {}
37  ModelBiasIncrement(const ModelBiasIncrement &, const eckit::Configuration &) {}
39 
40 /// Linear algebra operators
41  void diff(const ModelBias &, const ModelBias &) {}
42  void zero() {}
43  ModelBiasIncrement & operator=(const ModelBiasIncrement &) {return *this;}
46  ModelBiasIncrement & operator*=(const double) {return *this;}
47  void axpy(const double, const ModelBiasIncrement &) {}
48  double dot_product_with(const ModelBiasIncrement &) const {return 0.0;}
49 
50 /// I/O and diagnostics
51  void read(const eckit::Configuration &) {}
52  void write(const eckit::Configuration &) const {}
53  double norm() const {return 0.0;}
54 
55 /// Serialization
56  size_t serialSize() const override {return 0;}
57  void serialize(std::vector<double> &) const override {}
58  void deserialize(const std::vector<double> &, size_t &) override {}
59 
60  private:
62  void print(std::ostream & os) const override {}
63 };
64 
65 // -----------------------------------------------------------------------------
66 
67 } // namespace qg
68 
69 #endif // QG_MODEL_MODELBIASINCREMENT_H_
GeometryQG handles geometry for QG model.
Definition: GeometryQG.h:58
Model error for the QG model.
ModelBiasIncrement & operator=(const ModelBiasIncrement &)
ModelBiasIncrement(const GeometryQG &, const eckit::Configuration &)
Constructor, destructor.
void diff(const ModelBias &, const ModelBias &)
Linear algebra operators.
ModelBiasIncrement & operator*=(const double)
ModelBiasIncrement(const ModelBiasIncrement &, const eckit::Configuration &)
size_t serialSize() const override
Serialization.
void deserialize(const std::vector< double > &, size_t &) override
ModelBiasIncrement(const ModelBiasIncrement &, const bool)
double dot_product_with(const ModelBiasIncrement &) const
ModelBiasIncrement & operator+=(const ModelBiasIncrement &)
ModelBiasIncrement(const ModelBiasCovariance &)
ModelBiasIncrement & operator-=(const ModelBiasIncrement &)
void print(std::ostream &os) const override
void read(const eckit::Configuration &)
I/O and diagnostics.
void serialize(std::vector< double > &) const override
void axpy(const double, const ModelBiasIncrement &)
void write(const eckit::Configuration &) const
Definition: FieldL95.h:22
The namespace for the qg model.