UFO
ObsAvgKernelTLAD.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2017-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 
9 
10 #include <ostream>
11 
12 #include "ioda/ObsSpace.h"
13 #include "ioda/ObsVector.h"
14 
15 #include "oops/base/Variables.h"
16 #include "oops/util/Logger.h"
17 
18 #include "ufo/GeoVaLs.h"
19 
20 namespace ufo {
21 
22 // -----------------------------------------------------------------------------
24 // -----------------------------------------------------------------------------
25 
26 ObsAvgKernelTLAD::ObsAvgKernelTLAD(const ioda::ObsSpace & odb,
27  const eckit::Configuration & config)
28  : LinearObsOperatorBase(odb), keyOperAvgKernel_(0), varin_()
29 {
30  ufo_avgkernel_tlad_setup_f90(keyOperAvgKernel_, config, odb.obsvariables(), varin_);
31 
32  oops::Log::trace() << "ObsAvgKernelTLAD created" << std::endl;
33 }
34 
35 // -----------------------------------------------------------------------------
36 
39  oops::Log::trace() << "ObsAvgKernelTLAD destructed" << std::endl;
40 }
41 
42 // -----------------------------------------------------------------------------
43 
45  oops::Log::trace() << "ObsAvgKernelTLAD::setTrajectory entering" << std::endl;
46 
48 
49  oops::Log::trace() << "ObsAvgKernelTLAD::setTrajectory exiting" << std::endl;
50 }
51 
52 // -----------------------------------------------------------------------------
53 
54 void ObsAvgKernelTLAD::simulateObsTL(const GeoVaLs & geovals, ioda::ObsVector & ovec) const {
56  ovec.nvars(), ovec.nlocs(), ovec.toFortran());
57 
58  oops::Log::trace() << "ObsAvgKernelTLAD::simulateObsTL exiting" << std::endl;
59 }
60 
61 // -----------------------------------------------------------------------------
62 
63 void ObsAvgKernelTLAD::simulateObsAD(GeoVaLs & geovals, const ioda::ObsVector & ovec) const {
65  ovec.nvars(), ovec.nlocs(), ovec.toFortran());
66 
67  oops::Log::trace() << "ObsAvgKernelTLAD::simulateObsAD exiting" << std::endl;
68 }
69 
70 // -----------------------------------------------------------------------------
71 
72 void ObsAvgKernelTLAD::print(std::ostream & os) const {
73  os << "ObsAvgKernelTLAD::print not implemented" << std::endl;
74 }
75 
76 // -----------------------------------------------------------------------------
77 
78 } // namespace ufo
GeoVaLs: geophysical values at locations.
const ioda::ObsSpace & obsspace() const
The space containing the observations to be simulated by this operator.
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
void print(std::ostream &) const override
ObsAvgKernelTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
oops::Variables varin_
void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override
Obs Operator.
Definition: RunCRTM.h:27
void ufo_avgkernel_tlad_delete_f90(F90hop &)
void ufo_avgkernel_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &)
void ufo_avgkernel_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const int &, const double &)
static LinearObsOperatorMaker< ObsAvgKernelTLAD > makerAvgKernelTL_("AvgKernel")
void ufo_avgkernel_tlad_setup_f90(F90hop &, const eckit::Configuration &, const oops::Variables &, oops::Variables &)
Interface to Fortran UFO avgkernel routines.
void ufo_avgkernel_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const int &, double &)