Changeset 24736


Ignore:
Timestamp:
04/24/20 18:04:23 (5 years ago)
Author:
schlegel
Message:

CHG: turn off evap and fluxes with constrainsurfaceT flag

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp

    r24735 r24736  
    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
     
    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]
Note: See TracChangeset for help on using the changeset viewer.