12 #ifndef LORENZ95_INCREMENTL95_H_
13 #define LORENZ95_INCREMENTL95_H_
20 #include "atlas/field.h"
27 #include "oops/util/DateTime.h"
28 #include "oops/util/Duration.h"
29 #include "oops/util/ObjectCounter.h"
30 #include "oops/util/Printable.h"
31 #include "oops/util/Serializable.h"
45 class ModelBiasCorrection;
57 public util::Serializable,
58 private util::ObjectCounter<IncrementL95> {
60 static const std::string
classname() {
return "lorenz95::IncrementL95";}
71 void zero(
const util::DateTime &);
73 void dirac(
const eckit::Configuration &);
84 void setAtlas(atlas::FieldSet *)
const;
85 void toAtlas(atlas::FieldSet *)
const;
89 void read(
const eckit::Configuration &);
90 void write(
const eckit::Configuration &)
const;
102 std::shared_ptr<const Resolution>
geometry()
const {
113 void serialize(std::vector<double> &)
const override;
114 void deserialize(
const std::vector<double> &,
size_t &)
override;
117 void print(std::ostream &)
const override;
Class to represent fields for the L95 model.
const int & resol() const
Set and get.
std::vector< double > & asVector()
Increment Class: Difference between two states.
static const std::string classname()
void diff(const StateL95 &, const StateL95 &)
Basic operators.
void accumul(const double &, const StateL95 &)
void setLocal(const oops::LocalIncrement &, const Iterator &)
void deserialize(const std::vector< double > &, size_t &) override
IncrementL95 & operator=(const IncrementL95 &)
void write(const eckit::Configuration &) const
void axpy(const double &, const IncrementL95 &, const bool check=true)
IncrementL95 & operator-=(const IncrementL95 &)
const util::DateTime & validTime() const
void updateTime(const util::Duration &dt)
IncrementL95 & operator*=(const double &)
oops::LocalIncrement getLocal(const Iterator &) const
void schur_product_with(const IncrementL95 &)
const std::vector< double > & asVector() const
void toAtlas(atlas::FieldSet *) const
void read(const eckit::Configuration &)
Utilities.
double dot_product_with(const IncrementL95 &) const
void print(std::ostream &) const override
void serialize(std::vector< double > &) const override
void fromAtlas(atlas::FieldSet *)
size_t serialSize() const override
Serialize and deserialize.
void dirac(const eckit::Configuration &)
std::shared_ptr< const Resolution > geometry() const
void setAtlas(atlas::FieldSet *) const
ATLAS.
util::DateTime & validTime()
IncrementL95 & operator+=(const IncrementL95 &)
const FieldL95 & getField() const
Access to data.
std::vector< double > & asVector()
IncrementL95(const Resolution &, const oops::Variables &, const util::DateTime &)
Constructor, destructor.
The namespace for the L95 model.
The namespace for the main oops code.