FV3 Bundle
ObsStreamTLAD.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2009-2016 ECMWF.
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  * In applying this licence, ECMWF does not waive the privileges and immunities
7  * granted to it by virtue of its status as an intergovernmental organisation nor
8  * does it submit to any jurisdiction.
9  */
10 
11 #ifndef QG_MODEL_OBSSTREAMTLAD_H_
12 #define QG_MODEL_OBSSTREAMTLAD_H_
13 
14 #include <string>
15 
16 #include <boost/shared_ptr.hpp>
17 
18 #include "model/ObsOpBaseTLAD.h"
19 #include "oops/base/Variables.h"
20 #include "oops/util/ObjectCounter.h"
21 
22 // Forward declarations
23 namespace eckit {
24  class Configuration;
25 }
26 
27 namespace qg {
28  class GomQG;
29  class ObsBias;
30  class ObsBiasIncrement;
31  class ObsSpaceQG;
32  class ObsVecQG;
33 
34 // -----------------------------------------------------------------------------
35 /// Streamfunction TL/AD observation operator for QG model.
36 
38  private util::ObjectCounter<ObsStreamTLAD> {
39  public:
40  static const std::string classname() {return "qg::ObsStreamTLAD";}
41 
42  ObsStreamTLAD(const ObsSpaceQG &, const eckit::Configuration &);
43  virtual ~ObsStreamTLAD();
44 
45 // Obs Operators
46  void setTrajectory(const GomQG &, const ObsBias &) override;
47  void simulateObsTL(const GomQG &, ObsVecQG &, const ObsBiasIncrement &) const override;
48  void simulateObsAD(GomQG &, const ObsVecQG &, ObsBiasIncrement &) const override;
49 
50 // Other
51  const oops::Variables & variables() const override {return varin_;}
52 
53  int & toFortran() {return keyOperStrm_;}
54  const int & toFortran() const {return keyOperStrm_;}
55 
56  private:
57  void print(std::ostream &) const override;
60 };
61 // -----------------------------------------------------------------------------
62 
63 } // namespace qg
64 #endif // QG_MODEL_OBSSTREAMTLAD_H_
const oops::Variables & variables() const override
Other.
Definition: ObsStreamTLAD.h:51
GomQG class to handle local model values for QG model.
Definition: GomQG.h:31
ObsStreamTLAD(const ObsSpaceQG &, const eckit::Configuration &)
Streamfunction TL/AD observation operator for QG model.
Definition: ObsStreamTLAD.h:37
Base class for observation operators.
Definition: ObsOpBaseTLAD.h:32
void setTrajectory(const GomQG &, const ObsBias &) override
Obs Operator.
Class to handle observation bias parameters.
virtual ~ObsStreamTLAD()
const int & toFortran() const
Definition: ObsStreamTLAD.h:54
int F90hop
Definition: QgFortran.h:48
void print(std::ostream &) const override
static const std::string classname()
Definition: ObsStreamTLAD.h:40
const oops::Variables varin_
Definition: ObsStreamTLAD.h:59
void simulateObsAD(GomQG &, const ObsVecQG &, ObsBiasIncrement &) const override
ObsVecQG class to handle vectors in observation space for QG model.
Definition: ObsVecQG.h:27
Wrapper around ObsHelpQG, mostly to hide the factory.
Definition: ObsSpaceQG.h:35
The namespace for the qg model.
void simulateObsTL(const GomQG &, ObsVecQG &, const ObsBiasIncrement &) const override