20 #include "pism/coupler/ocean/Frac_MBP.hh"
21 #include "pism/geometry/Geometry.hh"
22 #include "pism/util/ScalarForcing.hh"
34 "melange back pressure fraction"));
48 "* Initializing melange back pressure fraction forcing...\n");
70 ice_density =
m_config->get_number(
"constants.ice.density"),
71 g =
m_config->get_number(
"constants.standard_gravity");
77 for (
auto p =
m_grid->points(); p; p.next()) {
78 const int i = p.i(), j = p.j();
82 P_m = lambda * (P_i - P_o(i, j));
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
array::Scalar2 ice_thickness
Makes sure that we call begin_access() and end_access() for all accessed array::Arrays.
Frac_MBP(std::shared_ptr< const Grid > g, std::shared_ptr< OceanModel > in)
void update_impl(const Geometry &geometry, double t, double dt)
std::unique_ptr< ScalarForcing > m_forcing
void init_impl(const Geometry &geometry)
const array::Scalar & average_water_column_pressure_impl() const
std::shared_ptr< OceanModel > m_input_model
std::shared_ptr< array::Scalar > m_water_column_pressure
static std::shared_ptr< array::Scalar > allocate_water_column_pressure(std::shared_ptr< const Grid > g)
A very rudimentary PISM ocean model.
bool ocean(int M)
An ocean cell (floating ice or ice-free).