PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
SeariseGreenland.hh
Go to the documentation of this file.
1 // Copyright (C) 2008-2018, 2021, 2023 Ed Bueler, Constantine Khroulev, Ricarda Winkelmann,
2 // Gudfinna Adalgeirsdottir and Andy Aschwanden
3 //
4 // This file is part of PISM.
5 //
6 // PISM is free software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the Free Software
8 // Foundation; either version 3 of the License, or (at your option) any later
9 // version.
10 //
11 // PISM is distributed in the hope that it will be useful, but WITHOUT ANY
12 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 // details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with PISM; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 
20 #ifndef __PASeariseGreenland_hh
21 #define __PASeariseGreenland_hh
22 
23 #include "pism/coupler/atmosphere/YearlyCycle.hh"
24 
25 namespace pism {
26 namespace atmosphere {
27 
28 //! \brief A modification of YearlyCycle tailored for the
29 //! SeaRISE-Greenland assessment. Uses the Fausto [\ref Faustoetal2009]
30 //! present-day temperature parameterization and stored precipitation data.
31 class SeaRISEGreenland : public YearlyCycle {
32 public:
33  SeaRISEGreenland(std::shared_ptr<const Grid> g);
34  virtual ~SeaRISEGreenland();
35 
36  virtual void init_impl(const Geometry &geometry);
37  virtual void precip_time_series_impl(int i, int j, std::vector<double> &values) const;
38 protected:
39  virtual MaxTimestep max_timestep_impl(double t) const;
40  virtual void update_impl(const Geometry &geometry, double t, double dt);
41 };
42 
43 
44 } // end of namespace atmosphere
45 } // end of namespace pism
46 
47 #endif // __PASeariseGreenland_hh
Combines the max. time step with the flag indicating if a restriction is active. Makes is possible to...
Definition: MaxTimestep.hh:31
virtual void init_impl(const Geometry &geometry)
Reads in the precipitation data from the input file.
virtual MaxTimestep max_timestep_impl(double t) const
virtual void precip_time_series_impl(int i, int j, std::vector< double > &values) const
SeaRISEGreenland(std::shared_ptr< const Grid > g)
virtual void update_impl(const Geometry &geometry, double t, double dt)
Updates mean annual and mean summer (July) near-surface air temperatures. Note that the precipitation...
A modification of YearlyCycle tailored for the SeaRISE-Greenland assessment. Uses the Fausto [Faustoe...
static const double g
Definition: exactTestP.cc:36