20 #include "pism/coupler/ocean/PyOceanModel.hh"
22 #include "pism/util/MaxTimestep.hh"
64 std::shared_ptr<PyOceanModel> implementation)
73 return m_impl->max_timestep(t);
77 m_impl->update(geometry, t, dt);
86 m_impl->define_model_state(output);
90 m_impl->write_model_state(output);
High-level PISM I/O class.
Combines the max. time step with the flag indicating if a restriction is active. Makes is possible to...
std::shared_ptr< array::Scalar > m_shelf_base_mass_flux
std::shared_ptr< array::Scalar > m_shelf_base_temperature
std::shared_ptr< array::Scalar > m_water_column_pressure
static std::shared_ptr< array::Scalar > allocate_shelf_base_temperature(std::shared_ptr< const Grid > g)
static std::shared_ptr< array::Scalar > allocate_shelf_base_mass_flux(std::shared_ptr< const Grid > g)
static std::shared_ptr< array::Scalar > allocate_water_column_pressure(std::shared_ptr< const Grid > g)
void update_impl(const Geometry &geometry, double my_t, double my_dt)
void init_impl(const Geometry &geometry)
PyOceanModelAdapter(std::shared_ptr< const Grid > grid, std::shared_ptr< PyOceanModel > implementation)
MaxTimestep max_timestep_impl(double t) const
void write_model_state_impl(const File &output) const
The default (empty implementation).
void define_model_state_impl(const File &output) const
The default (empty implementation).
std::shared_ptr< PyOceanModel > m_impl
virtual void init(const Geometry &geometry)
virtual void write_model_state(const File &output) const
virtual void update(const Geometry &geometry, double t, double dt)
virtual MaxTimestep max_timestep(double t) const
std::shared_ptr< pism::array::Scalar > shelf_base_temperature
virtual void define_model_state(const File &output) const
std::shared_ptr< array::Scalar > water_column_pressure
std::shared_ptr< array::Scalar > shelf_base_mass_flux
void allocate(std::shared_ptr< const Grid > grid)
#define PISM_ERROR_LOCATION
bool ocean(int M)
An ocean cell (floating ice or ice-free).