OOPS
GetValuesQG.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2019-2020 UCAR
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  */
7 
8 #include <memory>
9 
10 #include "model/GetValuesQG.h"
11 
12 #include "oops/util/Logger.h"
13 
14 #include "model/GeometryQG.h"
15 #include "model/GomQG.h"
16 #include "model/LocationsQG.h"
17 #include "model/StateQG.h"
18 
19 
20 namespace qg {
21 
22 // -----------------------------------------------------------------------------
23 /// Constructor, destructor
24 // -----------------------------------------------------------------------------
25 GetValuesQG::GetValuesQG(const GeometryQG & geom, const LocationsQG & locs)
26  : locs_(locs) {}
27 // -----------------------------------------------------------------------------
28 /// Get state values at observation locations
29 // -----------------------------------------------------------------------------
30 void GetValuesQG::fillGeoVaLs(const StateQG & state, const util::DateTime & t1,
31  const util::DateTime & t2, GomQG & gom) const {
33  t1, t2, gom.toFortran());
34 }
35 // -----------------------------------------------------------------------------
36 void GetValuesQG::print(std::ostream & os) const {
37  os << "GetValues" << std::endl;
38 }
39 // -----------------------------------------------------------------------------
40 
41 } // namespace qg
qg
The namespace for the qg model.
Definition: qg/model/AnalyticInit.cc:13
GetValuesQG.h
qg::StateQG
QG model state.
Definition: StateQG.h:42
qg::StateQG::fields
FieldsQG & fields()
Access to fields.
Definition: StateQG.h:69
GeometryQG.h
GomQG.h
qg::GetValuesQG::fillGeoVaLs
void fillGeoVaLs(const StateQG &, const util::DateTime &t1, const util::DateTime &t2, GomQG &) const
fills in geovals for all observations in the timeframe (t1, t2], geovals are interpolated trilinearly...
Definition: GetValuesQG.cc:30
qg::LocationsQG
LocationsQG class to handle locations for QG model.
Definition: LocationsQG.h:36
qg::GetValuesQG::print
void print(std::ostream &) const
Definition: GetValuesQG.cc:36
LocationsQG.h
qg::GomQG
GomQG class to handle local model values for QG model.
Definition: GomQG.h:33
qg::FieldsQG::toFortran
const int & toFortran() const
Definition: FieldsQG.h:99
qg::GetValuesQG::locs_
LocationsQG locs_
Definition: GetValuesQG.h:45
qg::qg_getvalues_interp_f90
void qg_getvalues_interp_f90(const LocationsQG &, const F90flds &, const util::DateTime &, const util::DateTime &, const F90gom &)
qg::GomQG::toFortran
const int & toFortran() const
Definition: GomQG.h:60
StateQG.h
qg::GeometryQG
GeometryQG handles geometry for QG model.
Definition: GeometryQG.h:54
qg::GetValuesQG::GetValuesQG
GetValuesQG(const GeometryQG &, const LocationsQG &locs)
saves all locations locs to use during filling GeoVaLs
Definition: GetValuesQG.cc:25