Changeset 16164 for issm/trunk-jpl/src/c/shared/Elements/ComputeDelta18oTemperaturePrecipitation.cpp
- Timestamp:
- 09/18/13 09:17:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/shared/Elements/ComputeDelta18oTemperaturePrecipitation.cpp ΒΆ
r14951 r16164 16 16 IssmDouble delta18oLapseRate=-6.2*pow(10.,-3); 17 17 IssmDouble glacialindex; // used to vary present day temperature 18 int imonth=0;19 18 20 glacialindex = 0 ;//(Delta18oTime-Delta18oPresent-delta18oLapseRate*(Delta18oSurfaceTime-Delta18oSurfacePresent))19 glacialindex = 0.;//(Delta18oTime-Delta18oPresent-delta18oLapseRate*(Delta18oSurfaceTime-Delta18oSurfacePresent)) 21 20 // /(Delta18oLgm-Delta18oPresent-delta18oLapseRate*(Delta18oSurfaceLgm-Delta18oSurfacePresent)); 22 21 23 22 for (int imonth = 0; imonth<12; imonth++){ 24 monthlytemperaturestmp[imonth] = glacialindex*TemperaturesLgm[imonth] + (1 -glacialindex)*TemperaturesPresentday[imonth];23 monthlytemperaturestmp[imonth] = glacialindex*TemperaturesLgm[imonth] + (1.-glacialindex)*TemperaturesPresentday[imonth]; 25 24 //monthlyprectmp[imonth] = 1.5*pow(2,((monthlytemperaturestmp[imonth]-273.15-0)/10)); //equation from rob's paper 26 25 monthlyprectmp[imonth] = PrecipitationsPresentday[imonth];
Note:
See TracChangeset
for help on using the changeset viewer.