tExample.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
---
tExample.hh (818B)
---
1 #ifndef _PO_EXAMPLE_H_
2 #define _PO_EXAMPLE_H_
3
4 #include "coupler/PISMOcean.hh"
5 #include "base/util/iceModelVec2T.hh"
6
7 namespace pism {
8 namespace ocean {
9 //! \brief An example ocean model illustrating the use of `IceModelVec2T`.
10 class Example : public OceanModel {
11 public:
12 Example(IceGrid::ConstPtr g);
13 virtual ~Example();
14 protected:
15 virtual MaxTimestep max_timestep_impl(double t) const;
16 virtual void update_impl(double my_t, double my_dt);
17 virtual void init_impl();
18 virtual void sea_level_elevation_impl(double &result) const;
19 virtual void shelf_base_temperature_impl(IceModelVec2S &result) const;
20 virtual void shelf_base_mass_flux_impl(IceModelVec2S &result) const;
21 protected:
22 IceModelVec2T m_shelf_melt_rate;
23 };
24
25 } // end of namespace ocean
26 } // end of namespace pism
27
28 #endif /* _PO_EXAMPLE_H_ */