Changeset 2839
- Timestamp:
- Feb 27, 2018 9:49:06 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/diagnostic_quantities_mod.f90
r2718 r2839 25 25 ! -----------------! 26 26 ! $Id$ 27 ! Bugfix for Kessler microphysics 28 ! 29 ! 2718 2018-01-02 08:49:38Z maronga 27 30 ! Corrected "Former revisions" section 28 31 ! … … 74 77 75 78 USE cloud_parameters, & 76 ONLY: l_d_cp, l_d_r, t_d_pt 79 ONLY: l_d_cp, l_d_r, t_d_pt 80 81 USE control_parameters, & 82 ONLY: microphysics_kessler 77 83 78 84 IMPLICIT NONE … … 97 103 !-- (see: Cuijpers + Duynkerke, 1993, JAS, 23) 98 104 q_s = q_s * ( 1.0_wp + alpha * q(k,j,i) ) / ( 1.0_wp + alpha * q_s ) 105 99 106 ! 100 107 !-- Supersaturation: 101 sat = ( q(k,j,i) - qr(k,j,i) - qc(k,j,i) ) / q_s - 1.0_wp 108 !-- Not in case of microphysics_kessler since qr is unallocated 109 IF ( .NOT. microphysics_kessler ) THEN 110 sat = ( q(k,j,i) - qr(k,j,i) - qc(k,j,i) ) / q_s - 1.0_wp 111 ENDIF 102 112 103 113 END SUBROUTINE supersaturation
Note: See TracChangeset
for help on using the changeset viewer.