11 #ifndef LORENZ95_FIELDL95_H_ 12 #define LORENZ95_FIELDL95_H_ 18 #include "oops/util/Printable.h" 26 class UnstructuredGrid;
38 static const std::string
classname() {
return "lorenz95::FieldL95";}
48 void dirac(
const eckit::Configuration &);
58 void generate(
const eckit::Configuration &);
61 void read(std::ifstream &);
62 void write(std::ofstream &)
const;
70 const std::vector<double> &
asVector()
const {
return x_;}
82 void print(std::ostream &)
const;
84 std::vector<double>
x_;
90 #endif // LORENZ95_FIELDL95_H_ GomL95 class to handle locations for L95 model.
const std::vector< double > & asVector() const
void interp(const LocsL95 &, GomL95 &) const
Interpolate to given location.
void ug_coord(oops::UnstructuredGrid &, const int &) const
Unstructured grid.
void field_to_ug(oops::UnstructuredGrid &, const int &) const
FieldL95 & operator-=(const FieldL95 &)
FieldL95(const Resolution &)
Constructors and basic operators.
subroutine, public copy(self, rhs)
void diff(const FieldL95 &, const FieldL95 &)
void interpAD(const LocsL95 &, const GomL95 &)
void print(std::ostream &) const
double & operator[](const int ii)
const double & operator[](const int ii) const
void dirac(const eckit::Configuration &)
LocsL95 class to handle locations for L95 model.
void field_from_ug(const oops::UnstructuredGrid &)
The namespace for the main oops code.
void zero()
Linear algebra.
static const std::string classname()
void read(std::ifstream &)
Utilities.
The namespace for the L95 model.
void schur(const FieldL95 &)
double dot_product_with(const FieldL95 &) const
FieldL95 & operator*=(const double &)
FieldL95 & operator+=(const FieldL95 &)
const int & resol() const
Set and get.
void generate(const eckit::Configuration &)
std::vector< double > & asVector()
void write(std::ofstream &) const
void axpy(const double &, const FieldL95 &)
FieldL95 & operator=(const FieldL95 &)
Class to represent fields for the L95 model.