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"
23#include "pism/util/Logger.hh"
24#include "pism/util/io/IO_Flags.hh"
35 unsigned int buffer_size =
m_config->get_number(
"input.forcing.buffer_size");
41 "shelf_base_mass_flux_anomaly",
48 .long_name(
"anomaly of the shelf base mass flux rate")
49 .units(
"kg m^-2 s^-1")
50 .output_units(
"kg m^-2 year^-1");
64 "* Initializing the '-ocean ...,anomaly' modifier...\n");
69 " reading anomalies from %s ...\n", opt.
filename.c_str());
std::shared_ptr< const Config > m_config
configuration database used by this component
const std::shared_ptr< const Grid > m_grid
grid used by this component
std::shared_ptr< const Logger > m_log
logger (for easy access)
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 Inputs &inputs, 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