source: issm/oecreview/Archive/24684-25833/ISSM-24735-24736.diff@ 25834

Last change on this file since 25834 was 25834, checked in by Mathieu Morlighem, 4 years ago

CHG: added 24684-25833

File size: 1.2 KB
  • ../trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp

    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
     
    936936                // new grid point temperature
    937937
    938938                //SW penetrates surface
    939                 for(int j=0;j<m;j++) T[j] = T[j] + dT_sw[j];
    940                 T[0] = T[0] + dT_dlw + dT_ulw + dT_turb;
     939                if(!isconstrainsurfaceT) for(int j=0;j<m;j++) T[j] = T[j] + dT_sw[j];
     940                if(!isconstrainsurfaceT) T[0] = T[0] + dT_dlw + dT_ulw + dT_turb;
    941941
    942942                // temperature diffusion
    943943                for(int j=0;j<m;j++) T0[1+j]=T[j];
     
    946946                for(int j=0;j<m;j++) T[j] = (Np[j] * T[j]) + (Nu[j] * Tu[j]) + (Nd[j] * Td[j]);
    947947
    948948                // calculate cumulative evaporation (+)/condensation(-)
    949                 EC = EC + (EC_day/dts)*dt;
     949                if(!isconstrainsurfaceT) EC = EC + (EC_day/dts)*dt;
    950950
    951951                /* CHECK FOR ENERGY (E) CONSERVATION [UNITS: J]
    952952                //energy flux across lower boundary (energy supplied by underling ice)
Note: See TracBrowser for help on using the repository browser.