tFloatKill.hh - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
 (HTM) git clone git://src.adamsgaard.dk/pism
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
       tFloatKill.hh (1383B)
       ---
            1 /* Copyright (C) 2013, 2014, 2015, 2016, 2017 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 _PISMFLOATKILL_H_
           21 #define _PISMFLOATKILL_H_
           22 
           23 #include "pism/util/Component.hh"
           24 
           25 namespace pism {
           26 
           27 class IceModelVec2CellType;
           28 class IceModelVec2S;
           29 
           30 namespace calving {
           31 
           32 /*! \brief Calving mechanism removing floating ice. */
           33 class FloatKill : public Component
           34 {
           35 public:
           36   FloatKill(IceGrid::ConstPtr g);
           37   virtual ~FloatKill();
           38 
           39   virtual void init();
           40   void update(IceModelVec2CellType &pism_mask, IceModelVec2S &ice_thickness);
           41 
           42 protected:
           43   bool m_margin_only, m_calve_near_grounding_line;
           44 };
           45 
           46 
           47 } // end of namespace calving
           48 } // end of namespace pism
           49 
           50 #endif /* _PISMFLOATKILL_H_ */