FV3 Bundle
ErrorCovarianceQG.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 QG_MODEL_ERRORCOVARIANCEQG_H_
12 #define QG_MODEL_ERRORCOVARIANCEQG_H_
13 
14 #include <ostream>
15 #include <string>
16 #include <boost/noncopyable.hpp>
17 
18 #include "eckit/config/Configuration.h"
19 #include "model/GeometryQG.h"
20 #include "model/QgFortran.h"
21 #include "oops/util/DateTime.h"
22 #include "oops/util/ObjectCounter.h"
23 #include "oops/util/Printable.h"
24 
25 // Forward declarations
26 namespace oops {
27  class Variables;
28 }
29 
30 namespace qg {
31  class IncrementQG;
32  class StateQG;
33 
34 // -----------------------------------------------------------------------------
35 /// Background error covariance matrix for QG model.
36 
37 class ErrorCovarianceQG : public util::Printable,
38  private boost::noncopyable,
39  private util::ObjectCounter<ErrorCovarianceQG> {
40  public:
41  static const std::string classname() {return "qg::ErrorCovarianceQG";}
42 
44  const eckit::Configuration &, const StateQG &, const StateQG &);
46 
47  void multiply(const IncrementQG &, IncrementQG &) const;
48  void inverseMultiply(const IncrementQG &, IncrementQG &) const;
49  void randomize(IncrementQG &) const;
50 
51  private:
52  void print(std::ostream &) const;
54  util::DateTime time_;
55 };
56 // -----------------------------------------------------------------------------
57 
58 } // namespace qg
59 #endif // QG_MODEL_ERRORCOVARIANCEQG_H_
ErrorCovarianceQG(const GeometryQG &, const oops::Variables &, const eckit::Configuration &, const StateQG &, const StateQG &)
int F90bmat
Definition: QgFortran.h:42
void inverseMultiply(const IncrementQG &, IncrementQG &) const
void multiply(const IncrementQG &, IncrementQG &) const
The namespace for the main oops code.
void randomize(IncrementQG &) const
QG model state.
Definition: StateQG.h:50
void print(std::ostream &) const
GeometryQG handles geometry for QG model.
Definition: GeometryQG.h:33
Background error covariance matrix for QG model.
The namespace for the qg model.
static const std::string classname()
Increment Class: Difference between two states.
Definition: IncrementQG.h:55