Changeset 28103
- Timestamp:
- 02/20/24 12:13:28 (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Elements/PddSurfaceMassBalance.cpp
r26395 r28103 10 10 11 11 IssmDouble PddSurfaceMassBalance(IssmDouble* monthlytemperatures, IssmDouble* monthlyprec, 12 IssmDouble* pdds, IssmDouble* pds, IssmDouble* melt, IssmDouble* accu, 12 IssmDouble* pdds, IssmDouble* pds, IssmDouble* melt, IssmDouble* accu, 13 13 IssmDouble signorm, IssmDouble yts, IssmDouble h, IssmDouble s, IssmDouble desfac, 14 14 IssmDouble s0t,IssmDouble s0p, IssmDouble rlaps,IssmDouble rlapslgm, … … 70 70 IssmDouble pddtj, hmx2; 71 71 IssmDouble pddsnowfac0=4.3, pddicefac0=8.3; 72 IssmDouble snowfac, icefac; 72 IssmDouble snowfac, icefac; 73 74 IssmDouble snow; 73 75 74 76 sconv=(rho_water/rho_ice)/12.; //rhow_rain/rhoi / 12 months … … 159 161 else if(Tsum< 10){ 160 162 snwmf = (0.15*(Tsum+1) + (2.65+snowfac-pddsnowfac0))*0.001; 161 smf = (((17.22-icefac)/(pow(11,3)))*pow((10.-Tsum),3) + pddicefac0)*0.001; 162 //JC,smf = (((icefac-pddicefac0)/(Tsum+1))*pow((10.-Tsum),3) + pddicefac0)*0.001; 163 smf = (((17.22-pddicefac0)/(pow(11,3)))*pow((10.-Tsum),3) + icefac)*0.001;//icefac)*0.001;//pddicefac0)*0.001; 164 //2024: Prior Calculation SMF: smf = (((17.22-icefac)/(pow(11,3)))*pow((10.-Tsum),3) + pddicefac0)*0.001; 165 //Original: Tarasov and Peltier: smf = (((icefac-pddicefac0)/(Tsum+1))*pow((10.-Tsum),3) + pddicefac0)*0.001; 163 166 } 164 167 else{ … … 246 249 pddtj=pddt; 247 250 251 //cout << sizeof(snwm); 252 //snw = mean(snwm); 253 254 //std::cout << snwm << std::endl; 255 //printf("snowmelt %f\n",snow); 256 248 257 return B; 249 258 }
Note:
See TracChangeset
for help on using the changeset viewer.