FV3 Bundle
instantiateCostFactory.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_ASSIMILATION_INSTANTIATECOSTFACTORY_H_
12 #define OOPS_ASSIMILATION_INSTANTIATECOSTFACTORY_H_
13 
19 
20 namespace oops {
21 
22 template <typename MODEL> void instantiateCostFactory() {
23  static CostMaker<MODEL, CostFct3DVar<MODEL> > maker3DVar_("3D-Var");
24  static CostMaker<MODEL, CostFct4DVar<MODEL> > maker4DVar_("4D-Var");
25  static CostMaker<MODEL, CostFct4DEnsVar<MODEL> > maker4DEns_("4D-Ens-Var");
26  static CostMaker<MODEL, CostFctWeak<MODEL> > maker4Weak_("4D-Weak");
27 }
28 
29 } // namespace oops
30 
31 #endif // OOPS_ASSIMILATION_INSTANTIATECOSTFACTORY_H_
The namespace for the main oops code.
void instantiateCostFactory()