Changeset 12867
- Timestamp:
- 08/02/12 08:46:28 (13 years ago)
- Location:
- issm/trunk-jpl/src/c/shared/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Elements/ComputeDelta18oTemperaturePrecipitation.cpp
r12771 r12867 15 15 IssmDouble delta18oLapseRate=-6.2*pow(10.,-3); 16 16 IssmDouble glacialindex; // used to vary present day temperature 17 int imonth=0; 18 // printf("Delta18oTime %f\n",Delta18oTime); 19 // printf("Delta18oPresent %f\n",Delta18oPresent); 20 // printf("Delta18oLgm %f\n",Delta18oLgm); 17 21 18 22 glacialindex = (Delta18oTime-Delta18oPresent-delta18oLapseRate*(Delta18oSurfaceTime-Delta18oSurfacePresent)) 19 23 /(Delta18oLgm-Delta18oPresent-delta18oLapseRate*(Delta18oSurfaceLgm-Delta18oSurfacePresent)); 20 24 // printf(" monthlytemperatureseeeeee %f\n",TemperaturesPresentday[1]); 25 // printf(" monthlypreceeeeeeee %f\n",TemperaturesLgm[1]); 26 // printf(" glacialindex %f\n",glacialindex); 27 21 28 for (int imonth = 0; imonth<12; imonth++){ 22 monthlytemperaturestmp[imonth] = glacialindex*TemperaturesLgm[imonth] + (1-glacialindex)*TemperaturesPresentday[imonth]; 23 monthlyprectmp[imonth] = 1.5*pow(2,((monthlytemperaturestmp[imonth]-0)/10)); //equation from rob's paper 29 monthlytemperaturestmp[imonth] = TemperaturesPresentday[imonth];//glacialindex*TemperaturesLgm[imonth] + (1-glacialindex)*TemperaturesPresentday[imonth]; 30 //monthlyprectmp[imonth] = 1.5*pow(2,((monthlytemperaturestmp[imonth]-273.15-0)/10)); //equation from rob's paper 31 monthlyprectmp[imonth] = PrecipitationsPresentday[imonth]; 32 24 33 /*Assign output pointer*/ 25 34 *(monthlytemperaturesout+imonth) = monthlytemperaturestmp[imonth]; 26 35 *(monthlyprecout+imonth) = monthlyprectmp[imonth]; 27 36 } 37 // printf(" tempera %f\n",monthlytemperaturestmp[1]); 28 38 } -
issm/trunk-jpl/src/c/shared/Elements/PddSurfaceMassBalance.cpp
r12748 r12867 61 61 62 62 sconv=(rho_water/rho_ice)/12.; //rhow_rain/rhoi / 12 months 63 63 64 64 /*PDD constant*/ 65 65 siglim = 2.5*signorm;
Note:
See TracChangeset
for help on using the changeset viewer.