19 #include "pism/coupler/atmosphere/Anomaly.hh"
21 #include "pism/util/ConfigInterface.hh"
22 #include "pism/util/Grid.hh"
23 #include "pism/coupler/util/options.hh"
24 #include "pism/util/array/Forcing.hh"
27 namespace atmosphere {
35 unsigned int buffer_size =
m_config->get_number(
"input.forcing.buffer_size");
49 "precipitation_anomaly",
56 .long_name(
"anomaly of the near-surface air temperature")
60 .long_name(
"anomaly of the ice-equivalent precipitation rate")
61 .units(
"kg m-2 second-1")
62 .output_units(
"kg m-2 year-1");
74 "* Initializing the -atmosphere ...,anomaly code...\n");
77 " reading anomalies from %s ...\n",
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.
std::shared_ptr< array::Forcing > m_air_temp_anomaly
std::shared_ptr< array::Scalar > m_temperature
std::vector< double > m_mass_flux_anomaly
void init_timeseries_impl(const std::vector< double > &ts) const
const array::Scalar & precipitation_impl() const
std::shared_ptr< array::Forcing > m_precipitation_anomaly
void temp_time_series_impl(int i, int j, std::vector< double > &values) const
void end_pointwise_access_impl() const
void init_impl(const Geometry &geometry)
std::shared_ptr< array::Scalar > m_precipitation
void precip_time_series_impl(int i, int j, std::vector< double > &values) const
void begin_pointwise_access_impl() const
void update_impl(const Geometry &geometry, double t, double dt)
const array::Scalar & air_temperature_impl() const
std::vector< double > m_temp_anomaly
Anomaly(std::shared_ptr< const Grid > g, std::shared_ptr< AtmosphereModel > in)
virtual void init_timeseries_impl(const std::vector< double > &ts) const
static std::shared_ptr< array::Scalar > allocate_temperature(std::shared_ptr< const Grid > grid)
std::shared_ptr< AtmosphereModel > m_input_model
static std::shared_ptr< array::Scalar > allocate_precipitation(std::shared_ptr< const Grid > grid)
std::vector< double > m_ts_times
A purely virtual class defining the interface of a PISM Atmosphere Model.
@ PISM_READONLY
open an existing file for reading only