PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
FloatKill.hh
Go to the documentation of this file.
1 /* Copyright (C) 2013, 2014, 2015, 2016, 2017, 2021, 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 PISM_FLOAT_KILL_H
21 #define PISM_FLOAT_KILL_H
22 
23 #include "pism/util/Component.hh"
24 #include "pism/util/array/CellType.hh"
25 
26 namespace pism {
27 
28 namespace calving {
29 
30 /*! \brief Calving mechanism removing floating ice. */
31 class FloatKill : public Component
32 {
33 public:
34  FloatKill(std::shared_ptr<const Grid> g);
35  virtual ~FloatKill() = default;
36 
37  virtual void init();
38  void update(array::Scalar &cell_type, array::Scalar &ice_thickness);
39 
40 protected:
42 
44 };
45 
46 
47 } // end of namespace calving
48 } // end of namespace pism
49 
50 #endif /* PISM_FLOAT_KILL_H */
A class defining a common interface for most PISM sub-models.
Definition: Component.hh:118
array::CellType1 m_old_mask
Definition: FloatKill.hh:43
virtual void init()
Definition: FloatKill.cc:36
virtual ~FloatKill()=default
FloatKill(std::shared_ptr< const Grid > g)
Definition: FloatKill.cc:29
void update(array::Scalar &cell_type, array::Scalar &ice_thickness)
Definition: FloatKill.cc:60
Calving mechanism removing floating ice.
Definition: FloatKill.hh:32
static const double g
Definition: exactTestP.cc:36