Changeset 15963


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

Location:
issm/trunk-jpl/src/c/classes/Elements
Files:
2 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]){
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r15962 r15963  
    74257425void  Tria::PotentialUngrounding(Vector<IssmDouble>* potential_ungrounding){
    74267426
    7427         IssmDouble  h[NUMVERTICES],r[NUMVERTICES];
     7427        IssmDouble  h[NUMVERTICES],r[NUMVERTICES],gl[NUMVERTICES];
    74287428        IssmDouble  bed_hydro;
    74297429        IssmDouble  rho_water,rho_ice,density;
     
    74357435        GetInputListOnVertices(&h[0],ThicknessEnum);
    74367436        GetInputListOnVertices(&r[0],BathymetryEnum);
     7437        GetInputListOnVertices(&gl[0],MaskGroundediceLevelsetEnum);
    74377438
    74387439        /*go through vertices, and figure out which ones are grounded and want to unground: */
    74397440        for(int i=0;i<NUMVERTICES;i++){
    74407441                /*Find if grounded vertices want to start floating*/
    7441                 if (!nodes[i]->IsFloating()){
     7442                if (gl[i]>0.){
    74427443                        bed_hydro=-density*h[i];
    74437444                        if(bed_hydro>r[i]){
Note: See TracChangeset for help on using the changeset viewer.