UFO
ObsAodGeosTLAD.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2019 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 
16 #include "oops/util/Logger.h"
17 #include "ufo/GeoVaLs.h"
18 
19 namespace ufo {
20 
21 // -----------------------------------------------------------------------------
23 // -----------------------------------------------------------------------------
24 
25 ObsAodGeosTLAD::ObsAodGeosTLAD(const ioda::ObsSpace & odb,
26  const eckit::Configuration & config)
27  : LinearObsOperatorBase(odb), keyOper_(0), varin_()
28 {
29  ufo_aodgeos_tlad_setup_f90(keyOper_, config, odb.obsvariables(), varin_);
30 
31  oops::Log::trace() << "ObsAodGeosTLAD created" << std::endl;
32 }
33 
34 // -----------------------------------------------------------------------------
35 
38  oops::Log::trace() << "ObsAodGeosTLAD destructed" << std::endl;
39 }
40 
41 // -----------------------------------------------------------------------------
42 
44  ObsDiagnostics &) {
45  oops::Log::trace() << "ObsAodGeosTLAD: trajectory entering" << std::endl;
47  oops::Log::trace() << "ObsAodGeosTLAD: set trajectory exiting" << std::endl;
48 }
49 
50 // -----------------------------------------------------------------------------
51 
52 void ObsAodGeosTLAD::simulateObsTL(const GeoVaLs & geovals, ioda::ObsVector & ovec) const {
54  ovec.nvars(), ovec.nlocs(), ovec.toFortran());
55  oops::Log::trace() << "ObsAodGeosTLAD: TL observation operator run" << std::endl;
56 }
57 
58 // -----------------------------------------------------------------------------
59 
60 void ObsAodGeosTLAD::simulateObsAD(GeoVaLs & geovals, const ioda::ObsVector & ovec) const {
62  ovec.nvars(), ovec.nlocs(), ovec.toFortran());
63  oops::Log::trace() << "ObsAodGeosTLAD: adjoint observation operator run" << std::endl;
64 }
65 
66 // -----------------------------------------------------------------------------
67 
68 void ObsAodGeosTLAD::print(std::ostream & os) const {
69  os << "ObsAodGeosTLAD::print not implemented" << std::endl;
70 }
71 
72 // -----------------------------------------------------------------------------
73 
74 } // namespace ufo
GeoVaLs: geophysical values at locations.
const ioda::ObsSpace & obsspace() const
The space containing the observations to be simulated by this operator.
oops::Variables varin_
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
ObsAodGeosTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override
Obs Operator.
void print(std::ostream &) const override
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
Definition: RunCRTM.h:27
void ufo_aodgeos_tlad_delete_f90(F90hop &)
void ufo_aodgeos_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const int &, double &)
void ufo_aodgeos_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &)
void ufo_aodgeos_tlad_setup_f90(F90hop &, const eckit::Configuration &, const oops::Variables &, oops::Variables &)
Interface to Fortran UFO aodgeos routines.
static LinearObsOperatorMaker< ObsAodGeosTLAD > makerAodGeosTL_("AodGeos")
void ufo_aodgeos_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const int &, const double &)