PISM, A Parallel Ice Sheet Model
stable v2.0.6 committed by Constantine Khrulev on 2023-01-23 15:14:38 -0900
|
A purely virtual class defining the interface of a PISM Atmosphere Model. More...
#include <AtmosphereModel.hh>
Public Member Functions | |
AtmosphereModel (IceGrid::ConstPtr g) | |
AtmosphereModel (IceGrid::ConstPtr g, std::shared_ptr< AtmosphereModel > input) | |
virtual | ~AtmosphereModel ()=default |
void | init (const Geometry &geometry) |
void | update (const Geometry &geometry, double t, double dt) |
const IceModelVec2S & | mean_precipitation () const |
Sets result to the mean precipitation, in m/s ice equivalent. More... | |
const IceModelVec2S & | mean_annual_temp () const |
Sets result to the mean annual near-surface air temperature, in degrees Kelvin. More... | |
void | begin_pointwise_access () const |
void | end_pointwise_access () const |
void | init_timeseries (const std::vector< double > &ts) const |
void | precip_time_series (int i, int j, std::vector< double > &result) const |
Sets a pre-allocated N-element array "result" to the time-series of ice-equivalent precipitation (m/s) at the point i,j on the grid. More... | |
void | temp_time_series (int i, int j, std::vector< double > &result) const |
Sets a pre-allocated N-element array "result" to the time-series of near-surface air temperature (degrees Kelvin) at the point i,j on the grid. Times (in years) are specified in ts. NB! Has to be surrounded by begin_pointwise_access() and end_pointwise_access() More... | |
![]() | |
Component (IceGrid::ConstPtr g) | |
virtual | ~Component ()=default |
DiagnosticList | diagnostics () const |
TSDiagnosticList | ts_diagnostics () const |
IceGrid::ConstPtr | grid () const |
void | define_model_state (const File &output) const |
Define model state variables in an output file. More... | |
void | write_model_state (const File &output) const |
Write model state variables to an output file. More... | |
MaxTimestep | max_timestep (double t) const |
Reports the maximum time-step the model can take at time t. More... | |
Protected Member Functions | |
virtual void | init_impl (const Geometry &geometry)=0 |
virtual void | update_impl (const Geometry &geometry, double t, double dt)=0 |
virtual void | define_model_state_impl (const File &output) const |
The default (empty implementation). More... | |
virtual void | write_model_state_impl (const File &output) const |
The default (empty implementation). More... | |
virtual MaxTimestep | max_timestep_impl (double my_t) const |
virtual const IceModelVec2S & | mean_precipitation_impl () const |
virtual const IceModelVec2S & | mean_annual_temp_impl () const |
virtual void | begin_pointwise_access_impl () const |
virtual void | end_pointwise_access_impl () const |
virtual void | init_timeseries_impl (const std::vector< double > &ts) const |
virtual void | precip_time_series_impl (int i, int j, std::vector< double > &result) const |
virtual void | temp_time_series_impl (int i, int j, std::vector< double > &result) const |
virtual DiagnosticList | diagnostics_impl () const |
virtual TSDiagnosticList | ts_diagnostics_impl () const |
![]() | |
virtual void | regrid (const std::string &module_name, IceModelVec &variable, RegriddingFlag flag=NO_REGRID_WITHOUT_REGRID_VARS) |
Static Protected Member Functions | |
static IceModelVec2S::Ptr | allocate_temperature (IceGrid::ConstPtr grid) |
static IceModelVec2S::Ptr | allocate_precipitation (IceGrid::ConstPtr grid) |
Protected Attributes | |
std::vector< double > | m_ts_times |
std::shared_ptr< AtmosphereModel > | m_input_model |
![]() | |
const IceGrid::ConstPtr | m_grid |
grid used by this component More... | |
const Config::ConstPtr | m_config |
configuration database used by this component More... | |
const units::System::Ptr | m_sys |
unit system used by this component More... | |
const Logger::ConstPtr | m_log |
logger (for easy access) More... | |
Additional Inherited Members | |
![]() | |
enum | RegriddingFlag { REGRID_WITHOUT_REGRID_VARS , NO_REGRID_WITHOUT_REGRID_VARS } |
This flag determines whether a variable is read from the -regrid_file file even if it is not listed among variables in -regrid_vars . More... | |
A purely virtual class defining the interface of a PISM Atmosphere Model.
Definition at line 36 of file AtmosphereModel.hh.