PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
IceRegionalModel.hh
Go to the documentation of this file.
1 /* Copyright (C) 2015, 2016, 2017, 2018, 2019, 2022, 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 #ifndef _ICEREGIONALMODEL_H_
21 #define _ICEREGIONALMODEL_H_
22 
23 #include <memory> // shared_ptr
24 
25 #include "pism/icemodel/IceModel.hh"
26 
27 namespace pism {
28 
29 namespace energy {
30 class CHSystem;
31 } // end of namespace energy
32 
33 //! \brief A version of the PISM core class (IceModel) which knows about the
34 //! `no_model_mask` and its semantics.
35 class IceRegionalModel : public IceModel {
36 public:
37  IceRegionalModel(std::shared_ptr<Grid> g, std::shared_ptr<Context> c);
38 
40 
41 protected:
42  virtual void bootstrap_2d(const File &input_file);
43 
45  void allocate_storage();
48  void allocate_energy_model();
49  void model_state_setup();
50 
51  void energy_step();
52  void hydrology_step();
53 
57 
58  void init_diagnostics();
59 
60 private:
64 
65  std::shared_ptr<energy::CHSystem> m_ch_system;
66  std::shared_ptr<array::Array3D> m_ch_warming_flux;
67 };
68 
69 } // end of namespace pism
70 
71 #endif /* _ICEREGIONALMODEL_H_ */
High-level PISM I/O class.
Definition: File.hh:56
energy::Inputs energy_model_inputs()
void energy_step()
Manage the solution of the energy equation, and related parallel communication.
void allocate_stressbalance()
Decide which stress balance model to use.
void allocate_storage()
Allocate all Arrays defined in IceModel.
const energy::CHSystem * cryo_hydrologic_system() const
void allocate_basal_yield_stress()
Decide which basal yield stress model to use.
array::Scalar2 m_usurf_stored
std::shared_ptr< array::Array3D > m_ch_warming_flux
void model_state_setup()
Sets the starting values of model state variables.
stressbalance::Inputs stress_balance_inputs()
IceRegionalModel(std::shared_ptr< Grid > g, std::shared_ptr< Context > c)
array::Scalar2 m_no_model_mask
array::Scalar1 m_thk_stored
virtual void bootstrap_2d(const File &input_file)
Bootstrap a "regional" model.
std::shared_ptr< energy::CHSystem > m_ch_system
YieldStressInputs yield_stress_inputs()
A version of the PISM core class (IceModel) which knows about the no_model_mask and its semantics.
static const double g
Definition: exactTestP.cc:36