|
PISM, A Parallel Ice Sheet Model stable 0.4.1779
|
PISM bed deformation model (base class). More...
#include <PISMBedDef.hh>

Public Member Functions | |
| PISMBedDef (IceGrid &g, const NCConfigVariable &conf) | |
| virtual | ~PISMBedDef () |
| virtual PetscErrorCode | init (PISMVars &vars) |
| virtual PetscErrorCode | update (PetscReal t_years, PetscReal dt_years)=0 |
| Update a model, if necessary. | |
| virtual void | add_vars_to_output (string, set< string > &) |
| Adds more variable names to result (to let sub-models respect -o_size or -save_size). | |
| virtual PetscErrorCode | define_variables (set< string >, const NCTool &, nc_type) |
| virtual PetscErrorCode | write_variables (set< string >, string) |
Protected Member Functions | |
| PetscErrorCode | pismbeddef_allocate () |
| PetscErrorCode | compute_uplift (PetscScalar dt_beddef) |
| Compute bed uplift. | |
Protected Attributes | |
| PetscReal | t_beddef_last |
| last bed deformation update year | |
| IceModelVec2S | topg_initial |
| IceModelVec2S | topg_last |
| last bed elevation | |
| IceModelVec2S * | thk |
| pointer to the current ice thickness | |
| IceModelVec2S * | topg |
| pointer to the current bed elevation | |
| IceModelVec2S * | uplift |
| pointer to the bed uplift rate field | |
PISM bed deformation model (base class).
Unlike other PISMComponent_TS derived classes, the update() method of PISMBedDef has side-effects (modifies IceModel data memebers).
Definition at line 30 of file PISMBedDef.hh.
| PISMBedDef | ( | IceGrid & | g, |
| const NCConfigVariable & | conf | ||
| ) |
Definition at line 21 of file PISMBedDef.cc.
References PISMComponent::grid, pismbeddef_allocate(), t_beddef_last, thk, topg, and uplift.
| virtual ~PISMBedDef | ( | ) | [inline, virtual] |
Definition at line 33 of file PISMBedDef.hh.
Adds more variable names to result (to let sub-models respect -o_size or -save_size).
Keyword can be one of "small", "medium" or "big".
Reimplemented from PISMComponent.
Definition at line 52 of file PISMBedDef.cc.
Referenced by IceModel::set_output_size().
| PetscErrorCode compute_uplift | ( | PetscScalar | dt_beddef | ) | [protected] |
Compute bed uplift.
uplift = (topg - topg_last) / dt
Definition at line 98 of file PISMBedDef.cc.
References secpera, topg, topg_last, and uplift.
Referenced by PBPointwiseIsostasy::update(), and PBLingleClark::update().
| PetscErrorCode define_variables | ( | set< string > | , |
| const NCTool & | , | ||
| nc_type | |||
| ) | [virtual] |
Defines requested couplings fields to file and/or asks an attached model to do so.
Reimplemented from PISMComponent.
Definition at line 56 of file PISMBedDef.cc.
References topg_initial.
Referenced by IceModel::write_variables().
| PetscErrorCode init | ( | PISMVars & | vars | ) | [virtual] |
Implements PISMComponent.
Reimplemented in PBPointwiseIsostasy, and PBLingleClark.
Definition at line 77 of file PISMBedDef.cc.
References PISMComponent::grid, t_beddef_last, thk, topg, topg_initial, and uplift.
Referenced by IceModel::model_state_setup().
| PetscErrorCode pismbeddef_allocate | ( | ) | [protected] |
Definition at line 37 of file PISMBedDef.cc.
References PISMComponent::grid, topg_initial, and topg_last.
Referenced by PISMBedDef().
Update a model, if necessary.
Implements PISMComponent_TS.
Implemented in PBPointwiseIsostasy, and PBLingleClark.
Referenced by IceModel::bed_def_step().
Writes requested couplings fields to file and/or asks an attached model to do so.
Reimplemented from PISMComponent.
Definition at line 67 of file PISMBedDef.cc.
References topg_initial.
Referenced by IceModel::write_variables().
PetscReal t_beddef_last [protected] |
last bed deformation update year
Definition at line 43 of file PISMBedDef.hh.
Referenced by init(), PISMBedDef(), PBPointwiseIsostasy::update(), and PBLingleClark::update().
IceModelVec2S* thk [protected] |
pointer to the current ice thickness
Definition at line 47 of file PISMBedDef.hh.
Referenced by init(), PBPointwiseIsostasy::init(), PBLingleClark::init(), PISMBedDef(), PBPointwiseIsostasy::update(), and PBLingleClark::update().
IceModelVec2S * topg [protected] |
pointer to the current bed elevation
Definition at line 47 of file PISMBedDef.hh.
Referenced by compute_uplift(), PBLingleClark::correct_topg(), init(), PBPointwiseIsostasy::init(), PBLingleClark::init(), PISMBedDef(), PBPointwiseIsostasy::update(), and PBLingleClark::update().
IceModelVec2S topg_initial [protected] |
Definition at line 45 of file PISMBedDef.hh.
Referenced by PBLingleClark::correct_topg(), define_variables(), init(), pismbeddef_allocate(), and write_variables().
IceModelVec2S topg_last [protected] |
last bed elevation
Definition at line 46 of file PISMBedDef.hh.
Referenced by compute_uplift(), PBPointwiseIsostasy::init(), pismbeddef_allocate(), PBPointwiseIsostasy::update(), and PBLingleClark::update().
IceModelVec2S * uplift [protected] |
pointer to the bed uplift rate field
Definition at line 47 of file PISMBedDef.hh.
Referenced by compute_uplift(), init(), PBLingleClark::init(), and PISMBedDef().
1.7.3