IODA Bundle
LocalizationMatrixQG.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2009-2016 ECMWF.
3  * (C) Copyright 2020-2020 UCAR
4  *
5  * This software is licensed under the terms of the Apache Licence Version 2.0
6  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
7  * In applying this licence, ECMWF does not waive the privileges and immunities
8  * granted to it by virtue of its status as an intergovernmental organisation nor
9  * does it submit to any jurisdiction.
10  */
11 
12 #ifndef QG_MODEL_LOCALIZATIONMATRIXQG_H_
13 #define QG_MODEL_LOCALIZATIONMATRIXQG_H_
14 
15 #include <ostream>
16 #include <string>
17 #include <vector>
18 
19 #include "eckit/config/Configuration.h"
20 
21 #include "oops/util/ObjectCounter.h"
22 #include "oops/util/Printable.h"
23 
24 #include "oops/qg/GeometryQG.h"
25 #include "oops/qg/QgFortran.h"
26 #include "oops/qg/QgTraits.h"
27 
28 // Forward declarations
29 namespace qg {
30  class GeometryQG;
31  class IncrementQG;
32 
33 /// Localization matrix for QG model.
34 
35 // -----------------------------------------------------------------------------
36 class LocalizationMatrixQG: public util::Printable,
37  private util::ObjectCounter<LocalizationMatrixQG> {
38  public:
39  static const std::string classname() {return "qg::LocalizationMatrixQG";}
40 
41  LocalizationMatrixQG(const GeometryQG &, const eckit::Configuration &);
43 
44  void randomize(IncrementQG &) const;
45  void multiply(IncrementQG &) const;
46 
47  private:
48  void print(std::ostream &) const override;
50 };
51 // -----------------------------------------------------------------------------
52 
53 } // namespace qg
54 
55 #endif // QG_MODEL_LOCALIZATIONMATRIXQG_H_
GeometryQG handles geometry for QG model.
Definition: GeometryQG.h:58
Increment Class: Difference between two states.
Definition: IncrementQG.h:64
Localization matrix for QG model.
void print(std::ostream &) const override
void randomize(IncrementQG &) const
LocalizationMatrixQG(const GeometryQG &, const eckit::Configuration &)
void multiply(IncrementQG &) const
static const std::string classname()
The namespace for the qg model.
int F90lclz
Definition: QgFortran.h:57