FV3-JEDI
VarChaA2M.h
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 
8 #pragma once
9 
10 #include <memory>
11 #include <ostream>
12 #include <string>
13 
14 #include "eckit/config/Configuration.h"
16 #include "oops/util/Printable.h"
17 #include "VarChaA2M.interface.h"
18 
19 namespace fv3jedi {
20 
21 // -------------------------------------------------------------------------------------------------
22 
23 class VarChaA2M: public util::Printable {
24  public:
25  static const std::string classname() {return "fv3jedi::VarChaA2M";}
26  explicit VarChaA2M(const Geometry &, const eckit::Configuration &);
27  ~VarChaA2M();
28  void changeVar(const State &, State &) const;
29  void changeVarInverse(const State &, State &) const;
30 
31  private:
32  std::shared_ptr<const Geometry> geom_;
34  void print(std::ostream &) const override;
35  eckit::LocalConfiguration conf_;
36 };
37 
38 // -------------------------------------------------------------------------------------------------
39 
40 } // namespace fv3jedi
fv3jedi::VarChaA2M
Definition: VarChaA2M.h:23
fv3jedi::VarChaA2M::changeVarInverse
void changeVarInverse(const State &, State &) const
Definition: VarChaA2M.cc:55
fv3jedi::VarChaA2M::keyFtnConfig_
F90vc_A2M keyFtnConfig_
Definition: VarChaA2M.h:33
fv3jedi::VarChaA2M::~VarChaA2M
~VarChaA2M()
Definition: VarChaA2M.cc:38
Geometry.h
fv3jedi::VarChaA2M::changeVar
void changeVar(const State &, State &) const
Definition: VarChaA2M.cc:45
VarChaA2M.interface.h
fv3jedi::Geometry
Geometry handles geometry for FV3JEDI model.
Definition: Geometry.h:41
fv3jedi::VarChaA2M::classname
static const std::string classname()
Definition: VarChaA2M.h:25
fv3jedi::State
Definition: State.h:45
fv3jedi::F90vc_A2M
int F90vc_A2M
Definition: VarChaA2M.interface.h:11
fv3jedi::VarChaA2M::VarChaA2M
VarChaA2M(const Geometry &, const eckit::Configuration &)
Definition: VarChaA2M.cc:28
fv3jedi::VarChaA2M::print
void print(std::ostream &) const override
Definition: VarChaA2M.cc:65
fv3jedi
Configuration files should be formatted as e.g.
Definition: ErrorCovariance.cc:20
fv3jedi::VarChaA2M::conf_
eckit::LocalConfiguration conf_
Definition: VarChaA2M.h:35
fv3jedi::VarChaA2M::geom_
std::shared_ptr< const Geometry > geom_
Definition: VarChaA2M.h:32