19 #include "pism/coupler/ocean/Anomaly.hh"
20 #include "pism/util/Grid.hh"
21 #include "pism/coupler/util/options.hh"
22 #include "pism/util/array/Forcing.hh"
33 unsigned int buffer_size =
m_config->get_number(
"input.forcing.buffer_size");
39 "shelf_base_mass_flux_anomaly",
46 .long_name(
"anomaly of the shelf base mass flux rate")
48 .output_units(
"kg m-2 year-1");
62 "* Initializing the '-ocean ...,anomaly' modifier...\n");
67 " reading anomalies from %s ...\n", opt.
filename.c_str());
const Config::ConstPtr m_config
configuration database used by this component
const Logger::ConstPtr m_log
logger (for easy access)
const std::shared_ptr< const Grid > m_grid
grid used by this component
High-level PISM I/O class.
virtual void init_impl(const Geometry &geometry)
std::shared_ptr< array::Scalar > m_shelf_base_mass_flux
Anomaly(std::shared_ptr< const Grid > g, std::shared_ptr< OceanModel > in)
virtual void update_impl(const Geometry &geometry, double t, double dt)
std::shared_ptr< array::Forcing > m_shelf_base_mass_flux_anomaly
virtual const array::Scalar & shelf_base_mass_flux_impl() const
std::shared_ptr< OceanModel > m_input_model
static std::shared_ptr< array::Scalar > allocate_shelf_base_mass_flux(std::shared_ptr< const Grid > g)
A very rudimentary PISM ocean model.
@ PISM_READONLY
open an existing file for reading only
bool ocean(int M)
An ocean cell (floating ice or ice-free).