12 #ifndef QG_MODEL_INCREMENTQG_H_
13 #define QG_MODEL_INCREMENTQG_H_
20 #include "atlas/field.h"
22 #include "eckit/config/LocalConfiguration.h"
25 #include "oops/util/DateTime.h"
26 #include "oops/util/dot_product.h"
27 #include "oops/util/Duration.h"
28 #include "oops/util/ObjectCounter.h"
29 #include "oops/util/Printable.h"
30 #include "oops/util/Serializable.h"
32 #include "oops/qg/FieldsQG.h"
33 #include "oops/qg/GeometryQG.h"
34 #include "oops/qg/GeometryQGIterator.h"
49 class ModelBiasIncrement;
50 class ErrorCovarianceQG;
63 public util::Serializable,
64 private util::ObjectCounter<IncrementQG> {
66 static const std::string
classname() {
return "qg::IncrementQG";}
78 void zero(
const util::DateTime &);
84 void axpy(
const double &,
const IncrementQG &,
const bool check =
true);
88 void dirac(
const eckit::Configuration &);
91 void read(
const eckit::Configuration &);
92 void write(
const eckit::Configuration &)
const;
99 void setAtlas(atlas::FieldSet *)
const;
100 void toAtlas(atlas::FieldSet *)
const;
107 std::shared_ptr<const GeometryQG>
geometry()
const {
118 void serialize(std::vector<double> &)
const override;
119 void deserialize(
const std::vector<double> &,
size_t &)
override;
123 void print(std::ostream &)
const override;
Class to represent a Fields for the QG model.
GeometryQG handles geometry for QG model.
Increment Class: Difference between two states.
void updateTime(const util::Duration &dt)
double dot_product_with(const IncrementQG &) const
void setAtlas(atlas::FieldSet *) const
ATLAS FieldSet.
void axpy(const double &, const IncrementQG &, const bool check=true)
void setLocal(const oops::LocalIncrement &, const GeometryQGIterator &)
void print(std::ostream &) const override
Data.
void read(const eckit::Configuration &)
I/O and diagnostics.
const util::DateTime & validTime() const
void toAtlas(atlas::FieldSet *) const
void dirac(const eckit::Configuration &)
void write(const eckit::Configuration &) const
IncrementQG & operator+=(const IncrementQG &)
const FieldsQG & fields() const
std::shared_ptr< const GeometryQG > geometry() const
IncrementQG & operator=(const IncrementQG &)
void schur_product_with(const IncrementQG &)
static const std::string classname()
void serialize(std::vector< double > &) const override
IncrementQG & operator-=(const IncrementQG &)
void diff(const StateQG &, const StateQG &)
Basic operators.
void deserialize(const std::vector< double > &, size_t &) override
size_t serialSize() const override
Serialization.
void fromAtlas(atlas::FieldSet *)
oops::LocalIncrement getLocal(const GeometryQGIterator &) const
IncrementQG(const GeometryQG &, const oops::Variables &, const util::DateTime &)
Constructor, destructor.
FieldsQG & fields()
Access to fields.
util::DateTime & validTime()
std::unique_ptr< FieldsQG > fields_
IncrementQG & operator*=(const double &)
void accumul(const double &, const StateQG &)
Other.
The namespace for the main oops code.
The namespace for the qg model.