source:
issm/oecreview/Archive/21724-22754/ISSM-22727-22728.diff@
22755
Last change on this file since 22755 was 22755, checked in by , 7 years ago | |
---|---|
File size: 1.3 KB |
-
../trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp
820 820 dT_turb = turb / TCs; 821 821 822 822 // upward longwave contribution 823 ulw = - SB * pow(Ts,4.0)* teValue * dt;823 ulw = - (SB * pow(Ts,4.0)* teValue) * dt ; 824 824 dT_ulw = ulw / TCs; 825 825 826 826 // new grid point temperature … … 1512 1512 for(int i=0;i<n;i++)W[i] += dW[i]; 1513 1513 1514 1514 //calculate Rsum: 1515 Rsum=cellsum(R,n) ;1515 Rsum=cellsum(R,n) + flxDn[n]; 1516 1516 1517 1517 // delete all cells with zero mass 1518 1518 D_size=0; for(int i=0;i<n;i++)if(m[i]>0.0)D_size++; … … 1539 1539 xDelete<IssmDouble>(F); 1540 1540 xDelete<IssmDouble>(R); 1541 1541 } 1542 1542 1543 1543 //Merging of cells as they are burried under snow. 1544 1544 Zcum=xNew<IssmDouble>(n); 1545 1545 dzMin2=xNew<IssmDouble>(n); … … 1668 1668 cellsplit(&T, n, j,1.0); 1669 1669 cellsplit(&d, n, j,1.0); 1670 1670 cellsplit(&a, n, j,1.0); 1671 cellsplit(&EI, n, j, 1.0);1672 cellsplit(&EW, n, j, 1.0);1671 cellsplit(&EI, n, j,.5); 1672 cellsplit(&EW, n, j,.5); 1673 1673 cellsplit(&re, n, j,1.0); 1674 1674 cellsplit(&gdn, n, j,1.0); 1675 1675 cellsplit(&gsp, n, j,1.0);
Note:
See TracBrowser
for help on using the repository browser.