Changeset 5577 for LMDZ6/branches/contrails/libf/phylmd
- Timestamp:
- Mar 15, 2025, 11:33:38 PM (3 months ago)
- Location:
- LMDZ6/branches/contrails/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/contrails/libf/phylmd/lmdz_lscp_ini.f90
r5575 r5577 93 93 LOGICAL, SAVE, PROTECTED :: ok_bug_phase_lscp=.true. ! bug on phase partitioning after precipitation processes 94 94 !$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) 95 98 96 99 LOGICAL, SAVE, PROTECTED :: reevap_ice=.false. ! no liquid precip for T< threshold … … 429 432 CALL getin_p('temp_nowater',temp_nowater) 430 433 CALL getin_p('ok_bug_phase_lscp',ok_bug_phase_lscp) 434 CALL getin_p('ok_bug_ice_fallspeed',ok_bug_ice_fallspeed) 431 435 ! for poprecip 432 436 CALL getin_p('ok_poprecip',ok_poprecip) … … 529 533 WRITE(lunout,*) 'lscp_ini, temp_nowater', temp_nowater 530 534 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 531 536 ! for poprecip 532 537 WRITE(lunout,*) 'lscp_ini, ok_poprecip', ok_poprecip -
LMDZ6/branches/contrails/libf/phylmd/lmdz_lscp_tools.f90
r5383 r5577 17 17 18 18 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 20 21 21 22 IMPLICIT NONE … … 46 47 47 48 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 49 55 phpa=pres(i)/100. ! pressure in hPa 50 56
Note: See TracChangeset
for help on using the changeset viewer.