Changeset 19926


Ignore:
Timestamp:
01/05/16 20:32:12 (9 years ago)
Author:
aleahsommers
Message:

CHG: Added condition to prevent negative pressure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/HydrologySommersAnalysis.cpp

    r19766 r19926  
    240240
    241241        /*Build friction element, needed later: */
    242         Friction* friction=new Friction(element,3);
     242        Friction* friction=new Friction(element,2);
    243243
    244244        /* Start  looping on the number of gaussian points: */
     
    337337                if(values[i]>rho_ice*thickness[i]/rho_water+bed[i]){
    338338                        values[i] = rho_ice*thickness[i]/rho_water+bed[i];
     339                }
     340
     341                /*Make sure that negative pressure is not allowed*/
     342      if(values[i]<bed[i]){
     343                        values[i] = bed[i];
    339344                }
    340345
     
    434439
    435440        /*Build friction element, needed later: */
    436         Friction* friction=new Friction(element,3);
     441        Friction* friction=new Friction(element,2);
    437442
    438443        /*Keep track of weights*/
Note: See TracChangeset for help on using the changeset viewer.