PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Factory.cc
Go to the documentation of this file.
1 /* Copyright (C) 2015, 2017, 2018, 2019, 2021, 2023 PISM Authors
2  *
3  * This file is part of PISM.
4  *
5  * PISM is free software; you can redistribute it and/or modify it under the
6  * terms of the GNU General Public License as published by the Free Software
7  * Foundation; either version 3 of the License, or (at your option) any later
8  * version.
9  *
10  * PISM is distributed in the hope that it will be useful, but WITHOUT ANY
11  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with PISM; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #include "pism/coupler/ocean/Factory.hh"
21 
22 // ocean models:
23 #include "pism/coupler/ocean/Anomaly.hh"
24 #include "pism/coupler/ocean/Constant.hh"
25 #include "pism/coupler/ocean/ConstantPIK.hh"
26 #include "pism/coupler/ocean/GivenClimate.hh"
27 #include "pism/coupler/ocean/Delta_T.hh"
28 #include "pism/coupler/ocean/Delta_SMB.hh"
29 #include "pism/coupler/ocean/Delta_MBP.hh"
30 #include "pism/coupler/ocean/Frac_MBP.hh"
31 #include "pism/coupler/ocean/Frac_SMB.hh"
32 #include "pism/coupler/ocean/Runoff_SMB.hh"
33 #include "pism/coupler/ocean/Cache.hh"
34 #include "pism/coupler/ocean/GivenTH.hh"
35 #include "pism/coupler/ocean/Pico.hh"
36 
37 namespace pism {
38 namespace ocean {
39 // Ocean
40 Factory::Factory(std::shared_ptr<const Grid> g)
41  : PCFactory<OceanModel>(g, "ocean.models") {
42 
43  add_model<GivenTH>("th");
44  add_model<PIK>("pik");
45  add_model<Constant>("constant");
46  add_model<Pico>("pico");
47  add_model<Given>("given");
48 
49  add_modifier<Anomaly>("anomaly");
50  add_modifier<Cache>("cache");
51  add_modifier<Delta_SMB>("delta_SMB");
52  add_modifier<Frac_SMB>("frac_SMB");
53  add_modifier<Delta_T>("delta_T");
54  add_modifier<Runoff_SMB>("runoff_SMB");
55  add_modifier<Delta_MBP>("delta_MBP");
56  add_modifier<Frac_MBP>("frac_MBP");
57 }
58 
59 } // end of namespace ocean
60 } // end of namespace pism
Factory(std::shared_ptr< const Grid > g)
Definition: Factory.cc:40
A very rudimentary PISM ocean model.
Definition: OceanModel.hh:33
bool ocean(int M)
An ocean cell (floating ice or ice-free).
Definition: Mask.hh:40
static const double g
Definition: exactTestP.cc:36