20 #include "pism/coupler/surface/Simple.hh"
22 #include "pism/coupler/AtmosphereModel.hh"
27 Simple::Simple(std::shared_ptr<const Grid>
g, std::shared_ptr<atmosphere::AtmosphereModel> atmosphere)
39 "* Initializing the simplest PISM surface (snow) processes model Simple.\n"
40 " It passes atmospheric state directly to upper ice fluid surface:\n"
41 " surface mass balance := precipitation,\n"
42 " ice upper surface temperature := 2m air temperature.\n");
const Logger::ConstPtr m_log
logger (for easy access)
const array::Scalar & accumulation_impl() const
Simple(std::shared_ptr< const Grid > g, std::shared_ptr< atmosphere::AtmosphereModel > atmosphere)
const array::Scalar & temperature_impl() const
virtual void update_impl(const Geometry &geometry, double t, double dt)
std::shared_ptr< array::Scalar > m_mass_flux
const array::Scalar & mass_flux_impl() const
std::shared_ptr< array::Scalar > m_temperature
const array::Scalar & melt_impl() const
virtual void init_impl(const Geometry &geometry)
const array::Scalar & runoff_impl() const
std::shared_ptr< atmosphere::AtmosphereModel > m_atmosphere
static std::shared_ptr< array::Scalar > allocate_mass_flux(std::shared_ptr< const Grid > grid)
void dummy_accumulation(const array::Scalar &smb, array::Scalar &result)
std::shared_ptr< array::Scalar > m_melt
static std::shared_ptr< array::Scalar > allocate_temperature(std::shared_ptr< const Grid > grid)
std::shared_ptr< array::Scalar > m_runoff
void dummy_melt(const array::Scalar &smb, array::Scalar &result)
std::shared_ptr< array::Scalar > m_accumulation
void dummy_runoff(const array::Scalar &smb, array::Scalar &result)
The interface of PISM's surface models.