Changeset 12867


Ignore:
Timestamp:
08/02/12 08:46:28 (13 years ago)
Author:
lemorzad
Message:

delta18o update

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  
    1515  IssmDouble delta18oLapseRate=-6.2*pow(10.,-3);
    1616  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);
    1721
    1822  glacialindex = (Delta18oTime-Delta18oPresent-delta18oLapseRate*(Delta18oSurfaceTime-Delta18oSurfacePresent))
    1923    /(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
    2128  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
    2433    /*Assign output pointer*/
    2534    *(monthlytemperaturesout+imonth) = monthlytemperaturestmp[imonth];
    2635    *(monthlyprecout+imonth) = monthlyprectmp[imonth];
    2736  }
     37  // printf(" tempera %f\n",monthlytemperaturestmp[1]);
    2838}
  • issm/trunk-jpl/src/c/shared/Elements/PddSurfaceMassBalance.cpp

    r12748 r12867  
    6161 
    6262  sconv=(rho_water/rho_ice)/12.; //rhow_rain/rhoi / 12 months
    63  
     63
    6464  /*PDD constant*/
    6565  siglim = 2.5*signorm;
Note: See TracChangeset for help on using the changeset viewer.