SOCA
|
Increment Class: Difference between two states. More...
#include <Increment.h>
Public Member Functions | |
Increment (const Geometry &, const oops::Variables &, const util::DateTime &) | |
Constructor, destructor. More... | |
Increment (const Geometry &, const Increment &) | |
Increment (const Increment &, const bool) | |
Increment (const Increment &) | |
virtual | ~Increment () |
void | diff (const State &, const State &) |
Basic operators. More... | |
void | ones () |
void | zero () |
void | zero (const util::DateTime &) |
Increment & | operator= (const Increment &) |
Increment & | operator+= (const Increment &) |
Increment & | operator-= (const Increment &) |
Increment & | operator*= (const double &) |
void | axpy (const double &, const Increment &, const bool check=true) |
double | dot_product_with (const Increment &) const |
void | schur_product_with (const Increment &) |
void | random () |
void | dirac (const eckit::Configuration &) |
oops::LocalIncrement | getLocal (const GeometryIterator &) const |
Getpoint/Setpoint. More... | |
void | setLocal (const oops::LocalIncrement &, const GeometryIterator &) |
void | setAtlas (atlas::FieldSet *) const |
ATLAS. More... | |
void | toAtlas (atlas::FieldSet *) const |
void | fromAtlas (atlas::FieldSet *) |
void | read (const eckit::Configuration &) |
I/O and diagnostics. More... | |
void | write (const eckit::Configuration &) const |
double | norm () const |
const util::DateTime & | validTime () const |
util::DateTime & | validTime () |
void | updateTime (const util::Duration &dt) |
size_t | serialSize () const override |
Serialize and deserialize. More... | |
void | serialize (std::vector< double > &) const override |
void | deserialize (const std::vector< double > &, size_t &) override |
void | accumul (const double &, const State &) |
Other. More... | |
int & | toFortran () |
const int & | toFortran () const |
std::shared_ptr< const Geometry > | geometry () const |
Static Public Member Functions | |
static const std::string | classname () |
Private Member Functions | |
void | print (std::ostream &) const override |
Data. More... | |
Private Attributes | |
F90flds | keyFlds_ |
oops::Variables | vars_ |
util::DateTime | time_ |
std::shared_ptr< const Geometry > | geom_ |
Increment Class: Difference between two states.
Some fields that are present in a State may not be present in an Increment. The Increment contains everything that is needed by the tangent-linear and adjoint models.
Definition at line 58 of file Increment.h.
soca::Increment::Increment | ( | const Geometry & | geom, |
const oops::Variables & | vars, | ||
const util::DateTime & | vt | ||
) |
Constructor, destructor.
Definition at line 38 of file Increment.cc.
soca::Increment::Increment | ( | const Increment & | other, |
const bool | copy | ||
) |
soca::Increment::Increment | ( | const Increment & | other | ) |
|
virtual |
void soca::Increment::accumul | ( | const double & | zz, |
const State & | xx | ||
) |
void soca::Increment::axpy | ( | const double & | zz, |
const Increment & | dx, | ||
const bool | check = true |
||
) |
|
inlinestatic |
Definition at line 63 of file Increment.h.
|
override |
Basic operators.
Definition at line 82 of file Increment.cc.
void soca::Increment::dirac | ( | const eckit::Configuration & | config | ) |
double soca::Increment::dot_product_with | ( | const Increment & | other | ) | const |
void soca::Increment::fromAtlas | ( | atlas::FieldSet * | afieldset | ) |
std::shared_ptr< const Geometry > soca::Increment::geometry | ( | ) | const |
Definition at line 313 of file Increment.cc.
oops::LocalIncrement soca::Increment::getLocal | ( | const GeometryIterator & | iter | ) | const |
Getpoint/Setpoint.
Definition at line 157 of file Increment.cc.
double soca::Increment::norm | ( | ) | const |
void soca::Increment::ones | ( | ) |
Increment & soca::Increment::operator*= | ( | const double & | zz | ) |
|
overrideprivate |
void soca::Increment::random | ( | ) |
void soca::Increment::read | ( | const eckit::Configuration & | files | ) |
I/O and diagnostics.
Definition at line 217 of file Increment.cc.
void soca::Increment::schur_product_with | ( | const Increment & | dx | ) |
|
override |
|
override |
Serialize and deserialize.
Serialization.
Definition at line 266 of file Increment.cc.
void soca::Increment::setAtlas | ( | atlas::FieldSet * | afieldset | ) | const |
void soca::Increment::setLocal | ( | const oops::LocalIncrement & | values, |
const GeometryIterator & | iter | ||
) |
void soca::Increment::toAtlas | ( | atlas::FieldSet * | afieldset | ) | const |
|
inline |
|
inline |
Definition at line 113 of file Increment.h.
void soca::Increment::updateTime | ( | const util::Duration & | dt | ) |
Definition at line 261 of file Increment.cc.
util::DateTime & soca::Increment::validTime | ( | ) |
Definition at line 257 of file Increment.cc.
const util::DateTime & soca::Increment::validTime | ( | ) | const |
void soca::Increment::write | ( | const eckit::Configuration & | files | ) | const |
void soca::Increment::zero | ( | ) |
Definition at line 118 of file Increment.cc.
void soca::Increment::zero | ( | const util::DateTime & | vt | ) |
|
private |
Definition at line 124 of file Increment.h.
|
private |
Definition at line 121 of file Increment.h.
|
private |
Definition at line 123 of file Increment.h.
|
private |
Definition at line 122 of file Increment.h.