20 #include "pism/coupler/atmosphere/PrecipitationScaling.hh"
22 #include "pism/util/ScalarForcing.hh"
23 #include "pism/util/ConfigInterface.hh"
26 namespace atmosphere {
29 std::shared_ptr<AtmosphereModel> in)
33 "atmosphere.precip_scaling",
37 "air temperature offsets"));
48 "* Initializing precipitation scaling"
49 " using temperature offsets...\n");
56 for (
unsigned int k = 0;
k < ts.size(); ++
k) {
std::shared_ptr< const Grid > grid() const
const Config::ConstPtr m_config
configuration database used by this component
const Logger::ConstPtr m_log
logger (for easy access)
virtual void init_timeseries_impl(const std::vector< double > &ts) const
std::shared_ptr< AtmosphereModel > m_input_model
static std::shared_ptr< array::Scalar > allocate_precipitation(std::shared_ptr< const Grid > grid)
A purely virtual class defining the interface of a PISM Atmosphere Model.
std::shared_ptr< ScalarForcing > m_forcing
void init_timeseries_impl(const std::vector< double > &ts) const
void update_impl(const Geometry &geometry, double t, double dt)
void precip_time_series_impl(int i, int j, std::vector< double > &values) const
PrecipitationScaling(std::shared_ptr< const Grid > g, std::shared_ptr< AtmosphereModel > in)
std::vector< double > m_scaling_values
const array::Scalar & precipitation_impl() const
std::shared_ptr< array::Scalar > m_precipitation
void init_impl(const Geometry &geometry)