PISM, A Parallel Ice Sheet Model stable 0.4.1779
Public Member Functions | Protected Attributes

PALapseRates Class Reference

#include <PASLapseRates.hh>

Inheritance diagram for PALapseRates:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 234 of file PASLapseRates.hh.


Constructor & Destructor Documentation

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.


Member Function Documentation

PetscErrorCode begin_pointwise_access ( ) [virtual]
PetscErrorCode end_pointwise_access ( ) [virtual]
PetscErrorCode init ( PISMVars &  vars) [virtual]
PetscErrorCode mean_annual_temp ( IceModelVec2S &  result) [virtual]
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().


Member Data Documentation

Definition at line 257 of file PASLapseRates.hh.

Referenced by init(), mean_precip(), and PALapseRates().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines