Changeset 24279


Ignore:
Timestamp:
10/25/19 13:36:55 (5 years ago)
Author:
schlegel
Message:

CHG: update grain radius when merging cells

Location:
issm/trunk-jpl
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp

    r24222 r24279  
    11981198                        dfall = min(max(1.29 - 0.17*V,0.20),1.0);
    11991199                        sfall = min(max(0.08*V + 0.38,0.5),0.9);
    1200                         refall = (0.1 + (1.0-dfall)*0.25 + (0.5-sfall)*0.1)/2.0;
     1200                        refall = max((0.1 + (1.0-dfall)*0.25 + (0.5-sfall)*0.1)/2.0,Gdntol);
    12011201
    12021202                        // if snow depth is greater than specified min dz, new cell created
     
    12281228                                gdn[0] = (dfall * P + gdn[0] * mInit[0])/mass;
    12291229                                gsp[0] = (sfall * P + gsp[0] * mInit[0])/mass;
    1230                                 refall = (0.1 + (1.0-dfall)*0.25 + (0.5-sfall)*0.1)/2.0;
     1230                                re[0] = max((0.1 + (1.0-gdn[0])*0.25 + (0.5-gsp[0])*0.1)/2.0,Gdntol);
    12311231                        }
    12321232                }
Note: See TracChangeset for help on using the changeset viewer.