OOPS
instantiateObsErrorFactory.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_GENERIC_INSTANTIATEOBSERRORFACTORY_H_
12 #define OOPS_GENERIC_INSTANTIATEOBSERRORFACTORY_H_
13 
14 #include "oops/base/ObsErrorBase.h"
17 
18 namespace oops {
19 
20 template <typename OBS> void instantiateObsErrorFactory() {
21  static ObsErrorMaker<OBS, ObsErrorDiag<OBS> > makerDiag_("diagonal");
22  static ObsErrorMaker<OBS, LocalObsErrorDiag<OBS> > makerLocalDiag_("localized diagonal");
23 }
24 
25 } // namespace oops
26 
27 #endif // OOPS_GENERIC_INSTANTIATEOBSERRORFACTORY_H_
oops
The namespace for the main oops code.
Definition: ErrorCovarianceL95.cc:22
ObsErrorDiag.h
oops::instantiateObsErrorFactory
void instantiateObsErrorFactory()
Definition: instantiateObsErrorFactory.h:20
oops::ObsErrorMaker
Definition: ObsErrorBase.h:78
LocalObsErrorDiag.h
ObsErrorBase.h