Changes between Version 15 and Version 16 of DevelopmentActivities/ORCHIDEE-MICT-IMBALANCE-P/Evaluation


Ignore:
Timestamp:
2015-09-15T10:20:24+02:00 (9 years ago)
Author:
ajornet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopmentActivities/ORCHIDEE-MICT-IMBALANCE-P/Evaluation

    v15 v16  
    200200 - GRAZING_MAP should not be read if grassland management is not activated. 
    201201 - If OK_EXPLICITSNOW is FALSE then snowdz is not initialized but used anyway (this is probably the case of other variables, to be checked). 
     202 
     203 
     204== Tao == 
     205 
     206There is a small bug in our MICT version that might induce the failure of some point simulations. In subroutine enerbil_flux of enerbil.f90: 
     207 
     208CHANGE 
     209{{{ 
     210      !! To get the extra energy used to melt the snowpack 
     211      IF (ok_explicitsnow .AND. temp_sol_new (ji) > tp_00 .AND. SUM(snowdz(ji,:)) .GT. zero .AND. snowcap(ji) .GT. zero) THEN 
     212 
     213         lwup_tmp(ji) = emis(ji) * c_stefan * temp_sol(ji)**4 + & 
     214           &     quatre * emis(ji) * c_stefan * temp_sol(ji)**3 * & 
     215           &     (tp_00 - temp_sol(ji)) 
     216}}} 
     217 
     218 
     219To  
     220{{{ 
     221  REAL(r_std), PARAMETER                                       :: EPS =1E-3_r_std         
     222   !! To get the extra energy used to melt the snowpack 
     223      IF (ok_explicitsnow .AND. temp_sol_new (ji) > tp_00 .AND. SUM(snowdz(ji,:)) .GT. zero .AND. snowcap(ji) .GT. EPS) THEN 
     224 
     225         lwup_tmp(ji) = emis(ji) * c_stefan * temp_sol(ji)**4 + & 
     226           &     quatre * emis(ji) * c_stefan * temp_sol(ji)**3 * & 
     227           &     (tp_00 - temp_sol(ji)) 
     228}}}