Changeset 19371


Ignore:
Timestamp:
05/15/15 10:46:51 (10 years ago)
Author:
lemorzad
Message:

minor pdd fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Element.cpp

    r19363 r19371  
    17231723                        gauss->GaussVertex(iv);
    17241724                        input->GetInputValue(&monthlytemperatures[iv*12+month],gauss,time_yr+month/12.*yts);
    1725                         yearlytemperatures[iv]=yearlytemperatures[iv]+monthlytemperatures[iv*12+month]*mavg; // Has to be in Kelvin
     1725                        // yearlytemperatures[iv]=yearlytemperatures[iv]+monthlytemperatures[iv*12+month]*mavg; // Has to be in Kelvin
    17261726                        monthlytemperatures[iv*12+month]=monthlytemperatures[iv*12+month]-273.15; // conversion from Kelvin to celcius for PDD module
    17271727                        input2->GetInputValue(&monthlyprec[iv*12+month],gauss,time_yr+month/12.*yts);
     
    17541754                                        desfac, s0t[iv], s0p[iv],rlaps,rlapslgm,TdiffTime,sealevTime,
    17551755                                        rho_water,rho_ice);
     1756        /*Get yearlytemperatures */
     1757                for(int month=0;month<12;month++) {
     1758                  yearlytemperatures[iv]=yearlytemperatures[iv]+(monthlytemperatures[iv*12+month]+273.15)*mavg; // Has to be in Kelvin
     1759                }
    17561760        }
    17571761
Note: See TracChangeset for help on using the changeset viewer.