Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IBSurfaceModel.hh
Go to the documentation of this file.
1// Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016, 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#ifndef PISM_ICEBIN_SURFACE_MODEL_H
20#define PISM_ICEBIN_SURFACE_MODEL_H
21
22#include "pism/coupler/SurfaceModel.hh"
23
24#include <memory>
25
26namespace pism {
27namespace icebin {
28
30public:
31 IBSurfaceModel(std::shared_ptr<const pism::Grid> grid);
32
33protected:
34 void init_impl(const Geometry &geometry);
35 void update_impl(const Geometry &geometry, double my_t, double my_dt);
36
37 const array::Scalar& accumulation_impl() const;
39 const array::Scalar& mass_flux_impl() const;
40 const array::Scalar& melt_impl() const;
41 const array::Scalar& runoff_impl() const;
42 const array::Scalar& temperature_impl() const;
43
44 void define_model_state_impl(const File &output) const;
45 void write_model_state_impl(const File &output) const;
46
47 MaxTimestep max_timestep_impl(double t) const;
48
49 std::string m_input_file;
50
51public:
52 // ------ See icebin/contracts/modele_pism.cpp
53 // Inputs from IceBin
54
55 // Mass of ice being transferred GCM --> Ice Model
57 // Enthalpy of ice being transferred Stieglitz --> Icebin
59
60 // GCM's idea of energy transfer into ice sheet.
61 // Used to compute mass/energy budget
63
64 // Temperature of the Dirichlet B.C.
66 // Water content of the Dirichlet B.C.
68};
69
70} // end of namespace icebin
71} // end of namespace pism
72
73#endif /* PISM_ICEBIN_SURFACE_MODEL_H */
std::shared_ptr< const Grid > grid() const
Definition Component.cc:105
High-level PISM I/O class.
Definition File.hh:55
Combines the max. time step with the flag indicating if a restriction is active. Makes is possible to...
pism::array::Scalar enthxfer
MaxTimestep max_timestep_impl(double t) const
const array::Scalar & liquid_water_fraction_impl() const
pism::array::Scalar massxfer
void define_model_state_impl(const File &output) const
The default (empty implementation).
pism::array::Scalar ice_top_bc_wc
const array::Scalar & melt_impl() const
const array::Scalar & accumulation_impl() const
const array::Scalar & mass_flux_impl() const
void write_model_state_impl(const File &output) const
The default (empty implementation).
void update_impl(const Geometry &geometry, double my_t, double my_dt)
void init_impl(const Geometry &geometry)
pism::array::Scalar ice_top_bc_temp
const array::Scalar & runoff_impl() const
const array::Scalar & temperature_impl() const
The interface of PISM's surface models.