18 #include "eckit/config/LocalConfiguration.h" 28 #include "oops/util/DateTime.h" 29 #include "oops/util/Duration.h" 30 #include "oops/util/Logger.h" 38 const util::DateTime &
vt)
41 oops::Log::trace() <<
"StateQG::StateQG created." << std::endl;
45 const eckit::Configuration & file)
48 if (file.has(
"analytic_init")) {
49 fields_->analytic_init(file, resol);
50 }
else if (file.has(
"read_from_file")) {
52 (file.getInt(
"read_from_file") == 1) ?
59 oops::Log::trace() <<
"StateQG::StateQG created and read in." << std::endl;
63 : fields_(new
FieldsQG(*other.fields_, resol)), stash_()
66 oops::Log::trace() <<
"StateQG::StateQG created by interpolation." << std::endl;
70 : fields_(new
FieldsQG(*other.fields_)), stash_()
73 oops::Log::trace() <<
"StateQG::StateQG copied." << std::endl;
77 oops::Log::trace() <<
"StateQG::StateQG destructed." << std::endl;
104 oops::Log::trace() <<
"StateQG interpolated" << std::endl;
127 os << std::endl <<
" Valid time: " <<
validTime();
142 return fields_->getPoint(iter);
GomQG class to handle local model values for QG model.
FieldsQG & fields()
Access to fields.
void getValues(const LocationsQG &, const oops::Variables &, GomQG &) const
Get state values at observation locations.
Class to represent a FieldSet for the QG model.
StateQG & operator=(const StateQG &)
Basic operators.
void accumul(const double &, const StateQG &)
boost::scoped_ptr< FieldsQG > fields_
StateQG & operator+=(const IncrementQG &)
Interactions with Increment.
void print(std::ostream &) const
const util::DateTime & validTime() const
type(file_type), dimension(:), allocatable, save files
real, dimension(:,:,:), allocatable vt
const util::DateTime & validTime() const
StateQG(const GeometryQG &, const oops::Variables &, const util::DateTime &)
Constructor, destructor.
void write(const eckit::Configuration &) const
GeometryQG handles geometry for QG model.
LocationsQG class to handle locations for QG model.
void changeResolution(const StateQG &xx)
Interpolate full fields.
void read(const eckit::Configuration &)
I/O and diagnostics.
oops::GridPoint getPoint(const GeometryQGIterator &) const
The namespace for the qg model.
Increment Class: Difference between two states.