Ignore:
Timestamp:
Nov 8, 2017, 4:45:50 PM (7 years ago)
Author:
jvatant
Message:

Commit various bugs leading to negative tracer tendencies
Also deleted some useless cfg files
--JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/muphytitan/mm_haze.f90

    r1793 r1819  
    743743        IF ((ratio <= 0.9_mm_wp .OR. ratio >= 1.1_mm_wp) .AND. wth(i) /= 0._mm_wp) THEN
    744744          wdt = wth(i)*dt
    745           zcorf(i) = dzb/wdt * (exp(-wdt*log(ratio)/dzb)-1._mm_wp) / (1._mm_wp-ratio)
     745          ! bugfix: max exponential arg to 30)
     746          zcorf(i) = dzb/wdt * (exp(MIN(30._mm_wp,-wdt*log(ratio)/dzb))-1._mm_wp) / (1._mm_wp-ratio)
     747          !zcorf(i) = dzb/wdt * (exp(-wdt*log(ratio)/dzb)-1._mm_wp) / (1._mm_wp-ratio)
    746748        ENDIF
    747749      ENDIF
Note: See TracChangeset for help on using the changeset viewer.