IODA Bundle
LocalizationMatrixL95.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 LORENZ95_LOCALIZATIONMATRIXL95_H_
13 #define LORENZ95_LOCALIZATIONMATRIXL95_H_
14 
15 #include <ostream>
16 #include <string>
17 #include <vector>
18 #include <boost/noncopyable.hpp>
19 
20 #include "eckit/config/Configuration.h"
21 #include "oops/util/DateTime.h"
22 #include "oops/util/ObjectCounter.h"
23 #include "oops/util/Printable.h"
24 
25 #include "lorenz95/L95Traits.h"
26 
27 // Forward declarations
28 namespace lorenz95 {
29  class IncrementL95;
30 
31 /// Localization matrix for Lorenz 95 model.
32 
33 // -----------------------------------------------------------------------------
34 class LocalizationMatrixL95: public util::Printable,
35  private util::ObjectCounter<LocalizationMatrixL95> {
36  public:
37  static const std::string classname() {return "lorenz95::LocalizationMatrixL95";}
38 
39  LocalizationMatrixL95(const Resolution &, const eckit::Configuration &);
40  void randomize(IncrementL95 &) const;
41  void multiply(IncrementL95 &) const;
42 
43  private:
44  void print(std::ostream &) const override;
45  const unsigned int resol_;
46  const double rscale_;
47  std::vector<double> coefs_;
48 };
49 // -----------------------------------------------------------------------------
50 } // namespace lorenz95
51 
52 #endif // LORENZ95_LOCALIZATIONMATRIXL95_H_
Increment Class: Difference between two states.
Definition: IncrementL95.h:58
Localization matrix for Lorenz 95 model.
LocalizationMatrixL95(const Resolution &, const eckit::Configuration &)
void randomize(IncrementL95 &) const
void print(std::ostream &) const override
void multiply(IncrementL95 &) const
static const std::string classname()
Handles resolution.
Definition: Resolution.h:43
The namespace for the L95 model.