|
PISM, A Parallel Ice Sheet Model stable 0.4.1779
|
#include <PASLapseRates.hh>

Public Member Functions | |
| PALapseRates (IceGrid &g, const NCConfigVariable &conf, PISMAtmosphereModel *in) | |
| virtual | ~PALapseRates () |
| virtual PetscErrorCode | init (PISMVars &vars) |
| Atmosphere. | |
| virtual PetscErrorCode | mean_precip (IceModelVec2S &result) |
| Sets result to the mean precipitation, in m/s ice equivalent. | |
| virtual PetscErrorCode | mean_annual_temp (IceModelVec2S &result) |
| Sets result to the mean annual near-surface air temperature, in degrees Kelvin. | |
| virtual PetscErrorCode | begin_pointwise_access () |
| virtual PetscErrorCode | end_pointwise_access () |
| virtual PetscErrorCode | temp_time_series (int i, int j, int N, PetscReal *ts, PetscReal *values) |
| Sets a pre-allocated N-element array "values" 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() | |
| virtual PetscErrorCode | temp_snapshot (IceModelVec2S &result) |
| Sets result to a snapshot of temperature for the time t_years. (For disgnostic purposes.) | |
Protected Attributes | |
| PetscReal | precip_lapse_rate |
Definition at line 234 of file PASLapseRates.hh.
| PALapseRates | ( | IceGrid & | g, |
| const NCConfigVariable & | conf, | ||
| PISMAtmosphereModel * | in | ||
| ) | [inline] |
Definition at line 237 of file PASLapseRates.hh.
References precip_lapse_rate.
| virtual ~PALapseRates | ( | ) | [inline, virtual] |
Definition at line 243 of file PASLapseRates.hh.
| PetscErrorCode begin_pointwise_access | ( | ) | [virtual] |
Reimplemented from PAModifier.
Definition at line 121 of file PASLapseRates.cc.
References PISMAtmosphereModel::begin_pointwise_access(), Modifier< PISMAtmosphereModel >::input_model, PLapseRates< PISMAtmosphereModel, PAModifier >::reference_surface, and PLapseRates< PISMAtmosphereModel, PAModifier >::surface.
| PetscErrorCode end_pointwise_access | ( | ) | [virtual] |
Reimplemented from PAModifier.
Definition at line 129 of file PASLapseRates.cc.
References PISMAtmosphereModel::end_pointwise_access(), Modifier< PISMAtmosphereModel >::input_model, PLapseRates< PISMAtmosphereModel, PAModifier >::reference_surface, and PLapseRates< PISMAtmosphereModel, PAModifier >::surface.
| PetscErrorCode init | ( | PISMVars & | vars | ) | [virtual] |
Atmosphere.
Implements PISMComponent.
Definition at line 74 of file PASLapseRates.cc.
References PISMComponent::grid, PISMComponent::init(), PLapseRates< PISMAtmosphereModel, PAModifier >::init_internal(), Modifier< PISMAtmosphereModel >::input_model, precip_lapse_rate, and PLapseRates< PISMAtmosphereModel, PAModifier >::temp_lapse_rate.
| PetscErrorCode mean_annual_temp | ( | IceModelVec2S & | result | ) | [virtual] |
Sets result to the mean annual near-surface air temperature, in degrees Kelvin.
Reimplemented from PAModifier.
Definition at line 113 of file PASLapseRates.cc.
References Modifier< PISMAtmosphereModel >::input_model, PLapseRates< PISMAtmosphereModel, PAModifier >::lapse_rate_correction(), PISMAtmosphereModel::mean_annual_temp(), and PLapseRates< PISMAtmosphereModel, PAModifier >::temp_lapse_rate.
| PetscErrorCode mean_precip | ( | IceModelVec2S & | result | ) | [virtual] |
Sets result to the mean precipitation, in m/s ice equivalent.
Reimplemented from PAModifier.
Definition at line 106 of file PASLapseRates.cc.
References Modifier< PISMAtmosphereModel >::input_model, PLapseRates< PISMAtmosphereModel, PAModifier >::lapse_rate_correction(), PISMAtmosphereModel::mean_precip(), and precip_lapse_rate.
| PetscErrorCode temp_snapshot | ( | IceModelVec2S & | result | ) | [virtual] |
Sets result to a snapshot of temperature for the time t_years. (For disgnostic purposes.)
Reimplemented from PAModifier.
Definition at line 154 of file PASLapseRates.cc.
References Modifier< PISMAtmosphereModel >::input_model, PLapseRates< PISMAtmosphereModel, PAModifier >::lapse_rate_correction(), PLapseRates< PISMAtmosphereModel, PAModifier >::temp_lapse_rate, and PISMAtmosphereModel::temp_snapshot().
| PetscErrorCode temp_time_series | ( | int | i, |
| int | j, | ||
| int | N, | ||
| PetscReal * | ts, | ||
| PetscReal * | values | ||
| ) | [virtual] |
Sets a pre-allocated N-element array "values" 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()
Reimplemented from PAModifier.
Definition at line 138 of file PASLapseRates.cc.
References Modifier< PISMAtmosphereModel >::input_model, vfnow::N, PLapseRates< PISMAtmosphereModel, PAModifier >::reference_surface, PLapseRates< PISMAtmosphereModel, PAModifier >::temp_lapse_rate, and PISMAtmosphereModel::temp_time_series().
PetscReal precip_lapse_rate [protected] |
Definition at line 257 of file PASLapseRates.hh.
Referenced by init(), mean_precip(), and PALapseRates().
1.7.3