OOPS
Accumulator.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 OOPS_BASE_ACCUMULATOR_H_
12
#define OOPS_BASE_ACCUMULATOR_H_
13
14
#include "
oops/base/Variables.h
"
15
#include "
oops/interface/Geometry.h
"
16
#include "oops/util/DateTime.h"
17
18
namespace
oops
{
19
20
// -----------------------------------------------------------------------------
21
22
template
<
typename
MODEL,
typename
ACC,
typename
FLDS>
class
Accumulator
:
public
ACC {
23
typedef
Geometry<MODEL>
Geometry_
;
24
public
:
25
explicit
Accumulator
(
const
Geometry_
& resol,
const
Variables
& vars,
26
const
util::DateTime & vt)
27
: ACC(resol, vars, vt) {ACC::zero();}
28
explicit
Accumulator
(
const
FLDS & dx)
29
: ACC(dx) {ACC::zero();}
30
~Accumulator
() {}
31
32
void
accumul
(
const
double
& zz,
const
FLDS & xx) {ACC::accumul(zz, xx);}
33
};
34
35
// -----------------------------------------------------------------------------
36
37
}
// namespace oops
38
39
#endif // OOPS_BASE_ACCUMULATOR_H_
oops
The namespace for the main oops code.
Definition:
ErrorCovarianceL95.cc:22
oops::Accumulator::Accumulator
Accumulator(const FLDS &dx)
Definition:
Accumulator.h:28
oops::Accumulator::Geometry_
Geometry< MODEL > Geometry_
Definition:
Accumulator.h:23
oops::Accumulator::Accumulator
Accumulator(const Geometry_ &resol, const Variables &vars, const util::DateTime &vt)
Definition:
Accumulator.h:25
oops::Accumulator::~Accumulator
~Accumulator()
Definition:
Accumulator.h:30
oops::Geometry
Geometry class used in oops; subclass of interface class above.
Definition:
oops/interface/Geometry.h:189
oops::Accumulator
Definition:
Accumulator.h:22
oops::Accumulator::accumul
void accumul(const double &zz, const FLDS &xx)
Definition:
Accumulator.h:32
oops::Variables
Definition:
oops/base/Variables.h:23
Variables.h
Geometry.h
fv3-bundle
oops
src
oops
base
Accumulator.h
Generated on Sun Oct 25 2020 12:42:56 for OOPS by
1.8.18