Ignore:
Timestamp:
08/26/13 16:49:22 (12 years ago)
Author:
seroussi
Message:

CHG: use MaskGroundediceLevelsetEnum instead of node->IsFloating to figure out if vertices are floating

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r15962 r15963  
    1132211322void  Penta::PotentialUngrounding(Vector<IssmDouble>* potential_ungrounding){
    1132311323
    11324         IssmDouble  h[NUMVERTICES],r[NUMVERTICES];
     11324        IssmDouble  h[NUMVERTICES],r[NUMVERTICES],gl[NUMVERTICES];
    1132511325        IssmDouble  bed_hydro;
    1132611326        IssmDouble  rho_water,rho_ice,density;
     
    1133211332        GetInputListOnVertices(&h[0],ThicknessEnum);
    1133311333        GetInputListOnVertices(&r[0],BathymetryEnum);
     11334        GetInputListOnVertices(&gl[0],MaskGroundediceLevelsetEnum);
    1133411335
    1133511336        /*go through vertices, and figure out which ones are on the ice sheet, and want to unground: */
    1133611337        for(int i=0;i<NUMVERTICES;i++){
    1133711338                /*Find if grounded vertices want to start floating*/
    11338                 if (!nodes[i]->IsFloating()){
     11339                if (gl[i]>0.){
    1133911340                        bed_hydro=-density*h[i];
    1134011341                        if(bed_hydro>r[i]){
Note: See TracChangeset for help on using the changeset viewer.