FV3 Bundle
LocalizationMatrixL95.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2009-2016 ECMWF.
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  * In applying this licence, ECMWF does not waive the privileges and immunities
7  * granted to it by virtue of its status as an intergovernmental organisation nor
8  * does it submit to any jurisdiction.
9  */
10 
11 #ifndef LORENZ95_LOCALIZATIONMATRIXL95_H_
12 #define LORENZ95_LOCALIZATIONMATRIXL95_H_
13 
14 #include <ostream>
15 #include <string>
16 #include <vector>
17 #include <boost/noncopyable.hpp>
18 
19 #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 // -----------------------------------------------------------------------------
35  private util::ObjectCounter<LocalizationMatrixL95> {
36  public:
37  static const std::string classname() {return "lorenz95::LocalizationMatrixL95";}
38 
39  LocalizationMatrixL95(const Resolution &, const eckit::Configuration &);
41  void multiply(IncrementL95 &) const;
42 
43  private:
44  void print(std::ostream &) const;
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:51
Localization matrix for Lorenz 95 model.
Handles resolution.
Definition: Resolution.h:25
LocalizationMatrixL95(const Resolution &, const eckit::Configuration &)
The namespace for the L95 model.
Base class for localizations.
static const std::string classname()