PISM, A Parallel Ice Sheet Model  stable v1.2 committed by Constantine Khrulev on 2020-02-11 20:24:05 -0900
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
pism::ocean::PicoGeometry Class Reference

#include <PicoGeometry.hh>

+ Inheritance diagram for pism::ocean::PicoGeometry:

Public Types

enum  IceRiseMask { OCEAN = 0, RISE = 1, CONTINENTAL = 2, FLOATING = 3 }
 

Public Member Functions

 PicoGeometry (IceGrid::ConstPtr grid)
 
virtual ~PicoGeometry ()
 
void update (const IceModelVec2S &bed_elevation, const IceModelVec2CellType &cell_type)
 
const IceModelVec2Intcontinental_shelf_mask () const
 
const IceModelVec2Intbox_mask () const
 
const IceModelVec2Intice_shelf_mask () const
 
const IceModelVec2Intice_rise_mask () const
 
- Public Member Functions inherited from pism::Component
 Component (IceGrid::ConstPtr g)
 
virtual ~Component ()
 
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...
 

Private Member Functions

void compute_ice_rises (const IceModelVec2CellType &cell_type, bool exclude_ice_rises, IceModelVec2Int &result)
 
void compute_lakes (const IceModelVec2CellType &cell_type, IceModelVec2Int &result)
 
void compute_ocean_mask (const IceModelVec2CellType &cell_type, IceModelVec2Int &result)
 
void compute_continental_shelf_mask (const IceModelVec2S &bed_elevation, const IceModelVec2Int &ice_rises_mask, double bed_elevation_threshold, IceModelVec2Int &result)
 
void compute_ice_shelf_mask (const IceModelVec2Int &ice_rises_mask, const IceModelVec2Int &lake_mask, IceModelVec2Int &result)
 
void compute_distances_cf (const IceModelVec2Int &ocean_mask, const IceModelVec2Int &ice_rises, bool exclude_ice_rises, IceModelVec2Int &dist_cf)
 
void compute_distances_gl (const IceModelVec2Int &ocean_mask, const IceModelVec2Int &ice_rises, bool exclude_ice_rises, IceModelVec2Int &dist_gl)
 
void compute_box_mask (const IceModelVec2Int &D_gl, const IceModelVec2Int &D_cf, const IceModelVec2Int &shelf_mask, int n_boxes, IceModelVec2Int &result)
 
void label_tmp ()
 
void relabel_by_size (IceModelVec2Int &mask)
 

Private Attributes

IceModelVec2Int m_continental_shelf
 
IceModelVec2Int m_boxes
 
IceModelVec2Int m_ice_shelves
 
IceModelVec2Int m_distance_gl
 
IceModelVec2Int m_distance_cf
 
IceModelVec2Int m_ocean_mask
 
IceModelVec2Int m_lake_mask
 
IceModelVec2Int m_ice_rises
 
IceModelVec2Int m_tmp
 
petsc::Vec::Ptr m_tmp_p0
 

Additional Inherited Members

- Protected Types inherited from pism::Component
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...
 
- Protected Member Functions inherited from pism::Component
virtual MaxTimestep max_timestep_impl (double t) const
 
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 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)
 
- Protected Attributes inherited from pism::Component
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...
 

Detailed Description

This class isolates geometric computations performed by the PICO ocean model.

Definition at line 38 of file PicoGeometry.hh.


The documentation for this class was generated from the following files: