[22755] | 1 | Index: ../trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp (revision 22727)
|
---|
| 4 | +++ ../trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp (revision 22728)
|
---|
| 5 | @@ -820,7 +820,7 @@
|
---|
| 6 | dT_turb = turb / TCs;
|
---|
| 7 |
|
---|
| 8 | // upward longwave contribution
|
---|
| 9 | - ulw = - SB * pow(Ts,4.0)* teValue * dt;
|
---|
| 10 | + ulw = - (SB * pow(Ts,4.0)* teValue) * dt ;
|
---|
| 11 | dT_ulw = ulw / TCs;
|
---|
| 12 |
|
---|
| 13 | // new grid point temperature
|
---|
| 14 | @@ -1512,7 +1512,7 @@
|
---|
| 15 | for(int i=0;i<n;i++)W[i] += dW[i];
|
---|
| 16 |
|
---|
| 17 | //calculate Rsum:
|
---|
| 18 | - Rsum=cellsum(R,n);
|
---|
| 19 | + Rsum=cellsum(R,n) + flxDn[n];
|
---|
| 20 |
|
---|
| 21 | // delete all cells with zero mass
|
---|
| 22 | D_size=0; for(int i=0;i<n;i++)if(m[i]>0.0)D_size++;
|
---|
| 23 | @@ -1539,7 +1539,7 @@
|
---|
| 24 | xDelete<IssmDouble>(F);
|
---|
| 25 | xDelete<IssmDouble>(R);
|
---|
| 26 | }
|
---|
| 27 | -
|
---|
| 28 | +
|
---|
| 29 | //Merging of cells as they are burried under snow.
|
---|
| 30 | Zcum=xNew<IssmDouble>(n);
|
---|
| 31 | dzMin2=xNew<IssmDouble>(n);
|
---|
| 32 | @@ -1668,8 +1668,8 @@
|
---|
| 33 | cellsplit(&T, n, j,1.0);
|
---|
| 34 | cellsplit(&d, n, j,1.0);
|
---|
| 35 | cellsplit(&a, n, j,1.0);
|
---|
| 36 | - cellsplit(&EI, n, j,1.0);
|
---|
| 37 | - cellsplit(&EW, n, j,1.0);
|
---|
| 38 | + cellsplit(&EI, n, j,.5);
|
---|
| 39 | + cellsplit(&EW, n, j,.5);
|
---|
| 40 | cellsplit(&re, n, j,1.0);
|
---|
| 41 | cellsplit(&gdn, n, j,1.0);
|
---|
| 42 | cellsplit(&gsp, n, j,1.0);
|
---|