Ignore:
Timestamp:
Mar 15, 2025, 11:33:38 PM (3 months ago)
Author:
aborella
Message:

Bugfix for ice fallspeed velocity (clipping too restrictive)

Location:
LMDZ6/branches/contrails/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/contrails/libf/phylmd/lmdz_lscp_ini.f90

    r5575 r5577  
    9393  LOGICAL, SAVE, PROTECTED :: ok_bug_phase_lscp=.true.      ! bug on phase partitioning after precipitation processes
    9494  !$OMP THREADPRIVATE(ok_bug_phase_lscp)
     95
     96  LOGICAL, SAVE, PROTECTED :: ok_bug_ice_fallspeed=.true.   ! flag to activate the high clipping of iwc when calculating ice  fallspeed velocity
     97  !$OMP THREADPRIVATE(ok_bug_ice_fallspeed)
    9598
    9699  LOGICAL, SAVE, PROTECTED :: reevap_ice=.false.            ! no liquid precip for T< threshold
     
    429432    CALL getin_p('temp_nowater',temp_nowater)
    430433    CALL getin_p('ok_bug_phase_lscp',ok_bug_phase_lscp)
     434    CALL getin_p('ok_bug_ice_fallspeed',ok_bug_ice_fallspeed)
    431435    ! for poprecip
    432436    CALL getin_p('ok_poprecip',ok_poprecip)
     
    529533    WRITE(lunout,*) 'lscp_ini, temp_nowater', temp_nowater
    530534    WRITE(lunout,*) 'lscp_ini, ok_bug_phase_lscp', ok_bug_phase_lscp
     535    WRITE(lunout,*) 'lscp_ini, ok_bug_ice_fallspeed', ok_bug_ice_fallspeed
    531536    ! for poprecip
    532537    WRITE(lunout,*) 'lscp_ini, ok_poprecip', ok_poprecip
  • LMDZ6/branches/contrails/libf/phylmd/lmdz_lscp_tools.f90

    r5383 r5577  
    1717   
    1818    use lmdz_lscp_ini, only: iflag_vice, ffallv_con, ffallv_lsc
    19     use lmdz_lscp_ini, only: cice_velo, dice_velo
     19    use lmdz_lscp_ini, only: cice_velo, dice_velo
     20    use lmdz_lscp_ini, only: ok_bug_ice_fallspeed
    2021
    2122    IMPLICIT NONE
     
    4647
    4748        tempc=temp(i)-273.15 ! celcius temp
    48         iwcg=MAX(iwc(i)*1000.,1E-3) ! iwc in g/m3. We set a minimum value to prevent from division by 0
     49        IF ( ok_bug_ice_fallspeed ) THEN
     50            iwcg=MAX(iwc(i)*1000.,1E-3) ! iwc in g/m3. We set a minimum value to prevent from division by 0
     51        ELSE
     52            ! AB the threshold is way too high, we reduce it
     53            iwcg=MAX(iwc(i)*1000.,1E-10) ! iwc in g/m3. We set a minimum value to prevent from division by 0
     54        ENDIF
    4955        phpa=pres(i)/100.    ! pressure in hPa
    5056
Note: See TracChangeset for help on using the changeset viewer.