Ignore:
Timestamp:
09/18/13 09:17:13 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: cppcheck errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/shared/Elements/ComputeDelta18oTemperaturePrecipitation.cpp ΒΆ

    r14951 r16164  
    1616  IssmDouble delta18oLapseRate=-6.2*pow(10.,-3);
    1717  IssmDouble glacialindex; // used to vary present day temperature
    18   int imonth=0;
    1918
    20   glacialindex = 0;//(Delta18oTime-Delta18oPresent-delta18oLapseRate*(Delta18oSurfaceTime-Delta18oSurfacePresent))
     19  glacialindex = 0.;//(Delta18oTime-Delta18oPresent-delta18oLapseRate*(Delta18oSurfaceTime-Delta18oSurfacePresent))
    2120  //  /(Delta18oLgm-Delta18oPresent-delta18oLapseRate*(Delta18oSurfaceLgm-Delta18oSurfacePresent));
    2221
    2322  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];
    2524    //monthlyprectmp[imonth] = 1.5*pow(2,((monthlytemperaturestmp[imonth]-273.15-0)/10)); //equation from rob's paper
    2625    monthlyprectmp[imonth] = PrecipitationsPresentday[imonth];
Note: See TracChangeset for help on using the changeset viewer.