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

PBLingleClark Class Reference

A wrapper class around BedDeformLC. More...

#include <PISMBedDef.hh>

Inheritance diagram for PBLingleClark:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PBLingleClark (IceGrid &g, const NCConfigVariable &conf)
virtual ~PBLingleClark ()
PetscErrorCode init (PISMVars &vars)
 Initialize the Lingle-Clark bed deformation model using uplift.
PetscErrorCode update (PetscReal t_years, PetscReal dt_years)
 Update the Lingle-Clark bed deformation model.

Protected Member Functions

PetscErrorCode correct_topg ()
PetscErrorCode allocate ()
PetscErrorCode deallocate ()
PetscErrorCode transfer_to_proc0 (IceModelVec2S *source, Vec result)
PetscErrorCode transfer_from_proc0 (Vec source, IceModelVec2S *result)

Protected Attributes

Vec g2
Vec g2natural
 global Vecs used to transfer data to/from processor 0.
VecScatter scatter
 VecScatter used to transfer data to/from processor 0.
Vec Hp0
 ice thickness
Vec bedp0
 bed elevation
Vec Hstartp0
 initial (start-of-the-run) thickness
Vec bedstartp0
 initial bed elevation
Vec upliftp0
 bed uplift
BedDeformLC bdLC

Detailed Description

A wrapper class around BedDeformLC.

Definition at line 68 of file PISMBedDef.hh.


Constructor & Destructor Documentation

PBLingleClark ( IceGrid &  g,
const NCConfigVariable &  conf 
)

Definition at line 24 of file PBLingleClark.cc.

References allocate(), and PISMComponent::grid.

~PBLingleClark ( ) [virtual]

Definition at line 36 of file PBLingleClark.cc.

References deallocate(), and PISMComponent::grid.


Member Function Documentation

PetscErrorCode allocate ( ) [protected]
PetscErrorCode correct_topg ( ) [protected]

Definition at line 165 of file PBLingleClark.cc.

References PISMComponent::grid, vnreport::nc, PISMBedDef::topg, and PISMBedDef::topg_initial.

Referenced by init().

PetscErrorCode deallocate ( ) [protected]

Definition at line 127 of file PBLingleClark.cc.

References bedp0, bedstartp0, g2, g2natural, Hp0, Hstartp0, scatter, and upliftp0.

Referenced by ~PBLingleClark().

PetscErrorCode init ( PISMVars &  vars) [virtual]

Initialize the Lingle-Clark bed deformation model using uplift.

Reimplemented from PISMBedDef.

Definition at line 144 of file PBLingleClark.cc.

References bdLC, bedstartp0, correct_topg(), PISMComponent::grid, Hstartp0, PISMBedDef::thk, PISMBedDef::topg, transfer_to_proc0(), PISMBedDef::uplift, BedDeformLC::uplift_init(), and upliftp0.

PetscErrorCode transfer_from_proc0 ( Vec  source,
IceModelVec2S *  result 
) [protected]

Definition at line 81 of file PBLingleClark.cc.

References g2, g2natural, PISMComponent::grid, and scatter.

Referenced by update().

PetscErrorCode transfer_to_proc0 ( IceModelVec2S *  source,
Vec  result 
) [protected]

Definition at line 67 of file PBLingleClark.cc.

References g2, g2natural, PISMComponent::grid, and scatter.

Referenced by init(), and update().

PetscErrorCode update ( PetscReal  t_years,
PetscReal  dt_years 
) [virtual]

Update the Lingle-Clark bed deformation model.

Finally, we need to update bed uplift and topg_last.

Implements PISMBedDef.

Definition at line 247 of file PBLingleClark.cc.

References bdLC, bedp0, PISMBedDef::compute_uplift(), PISMComponent::config, PISMComponent_TS::dt, e, PISMComponent::grid, Hp0, BedDeformLC::step(), PISMComponent_TS::t, PISMBedDef::t_beddef_last, PISMBedDef::thk, PISMBedDef::topg, PISMBedDef::topg_last, transfer_from_proc0(), and transfer_to_proc0().


Member Data Documentation

BedDeformLC bdLC [protected]

Definition at line 89 of file PISMBedDef.hh.

Referenced by allocate(), init(), and update().

Vec bedp0 [protected]

bed elevation

Definition at line 84 of file PISMBedDef.hh.

Referenced by allocate(), deallocate(), and update().

Vec bedstartp0 [protected]

initial bed elevation

Definition at line 84 of file PISMBedDef.hh.

Referenced by allocate(), deallocate(), and init().

Vec g2 [protected]

Definition at line 81 of file PISMBedDef.hh.

Referenced by allocate(), deallocate(), transfer_from_proc0(), and transfer_to_proc0().

Vec g2natural [protected]

global Vecs used to transfer data to/from processor 0.

Definition at line 81 of file PISMBedDef.hh.

Referenced by allocate(), deallocate(), transfer_from_proc0(), and transfer_to_proc0().

Vec Hp0 [protected]

ice thickness

Definition at line 84 of file PISMBedDef.hh.

Referenced by allocate(), deallocate(), and update().

Vec Hstartp0 [protected]

initial (start-of-the-run) thickness

Definition at line 84 of file PISMBedDef.hh.

Referenced by allocate(), deallocate(), and init().

VecScatter scatter [protected]

VecScatter used to transfer data to/from processor 0.

Definition at line 82 of file PISMBedDef.hh.

Referenced by allocate(), deallocate(), transfer_from_proc0(), and transfer_to_proc0().

Vec upliftp0 [protected]

bed uplift

Definition at line 84 of file PISMBedDef.hh.

Referenced by allocate(), deallocate(), and init().


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