UFO
ObsExampleTLAD.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2017-2018 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 
9 
10 #include <ostream>
11 
12 #include "ioda/ObsSpace.h"
13 #include "ioda/ObsVector.h"
14 #include "oops/base/Variables.h"
15 #include "oops/util/Logger.h"
16 #include "ufo/GeoVaLs.h"
17 #include "ufo/ObsDiagnostics.h"
18 
19 namespace ufo {
20 
21 // -----------------------------------------------------------------------------
23 // -----------------------------------------------------------------------------
24 
25 ObsExampleTLAD::ObsExampleTLAD(const ioda::ObsSpace & odb,
26  const eckit::Configuration & config)
27  : LinearObsOperatorBase(odb), keyOper_(0), varin_()
28 {
29  ufo_example_tlad_setup_f90(keyOper_, config, odb.obsvariables(), varin_);
30  oops::Log::trace() << "ObsExampleTLAD created" << std::endl;
31 }
32 
33 // -----------------------------------------------------------------------------
34 
37  oops::Log::trace() << "ObsExampleTLAD destructed" << std::endl;
38 }
39 
40 // -----------------------------------------------------------------------------
41 
42 void ObsExampleTLAD::setTrajectory(const GeoVaLs & geovals, ObsDiagnostics & ydiags) {
44  oops::Log::trace() << "ObsExampleTLAD: trajectory set" << std::endl;
45 }
46 
47 // -----------------------------------------------------------------------------
48 
49 void ObsExampleTLAD::simulateObsTL(const GeoVaLs & geovals, ioda::ObsVector & ovec) const {
51  ovec.size(), ovec.toFortran());
52  oops::Log::trace() << "ObsExampleTLAD: TL observation operator run" << std::endl;
53 }
54 
55 // -----------------------------------------------------------------------------
56 
57 void ObsExampleTLAD::simulateObsAD(GeoVaLs & geovals, const ioda::ObsVector & ovec) const {
59  ovec.size(), ovec.toFortran());
60  oops::Log::trace() << "ObsExampleTLAD: adjoint observation operator run" << std::endl;
61 }
62 
63 // -----------------------------------------------------------------------------
64 
65 void ObsExampleTLAD::print(std::ostream & os) const {
66  os << "ObsExampleTLAD::print not implemented" << std::endl;
67 }
68 
69 // -----------------------------------------------------------------------------
70 
71 } // namespace ufo
GeoVaLs: geophysical values at locations.
const ioda::ObsSpace & obsspace() const
The space containing the observations to be simulated by this operator.
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
ObsExampleTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
void print(std::ostream &) const override
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override
Obs Operator.
oops::Variables varin_
Definition: RunCRTM.h:27
void ufo_example_tlad_setup_f90(F90hop &, const eckit::Configuration &, const oops::Variables &, oops::Variables &)
Interface to Fortran UFO example routines.
void ufo_example_tlad_delete_f90(F90hop &)
void ufo_example_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
void ufo_example_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &)
void ufo_example_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const F90goms &)
static LinearObsOperatorMaker< ObsExampleTLAD > makerExampleTL_("Example")