Changeset 3207 for palm/trunk/SOURCE/lpm_advec.f90
- Timestamp:
- Aug 27, 2018 12:55:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lpm_advec.f90
r3189 r3207 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Minor bugfix for sgs-velocities in case of cloud droplets 28 ! 29 ! 3189 2018-08-06 13:18:55Z raasch 27 30 ! Bugfix: Index of the array dzw has to be k+1 during the interpolation. 28 31 ! Otherwise k=0 causes an abortion because dzw is allocated from 1 to nzt+1 … … 977 980 IF ( use_sgs_for_particles ) THEN 978 981 lagr_timescale(n) = km(kp,jp,ip) / MAX( e(kp,jp,ip), 1.0E-20_wp ) 979 RL = EXP( -1.0_wp * dt_3d / lagr_timescale(n) ) 982 RL = EXP( -1.0_wp * dt_3d / MAX( lagr_timescale(n), & 983 1.0E-20_wp ) ) 980 984 sigma = SQRT( e(kp,jp,ip) ) 981 985 … … 1049 1053 IF ( use_sgs_for_particles ) THEN 1050 1054 lagr_timescale(n) = km(kp,jp,ip) / MAX( e(kp,jp,ip), 1.0E-20_wp ) 1051 RL = EXP( -1.0_wp * dt_3d / lagr_timescale(n) ) 1055 RL = EXP( -1.0_wp * dt_3d / MAX( lagr_timescale(n), & 1056 1.0E-20_wp ) ) 1052 1057 sigma = SQRT( e(kp,jp,ip) ) 1053 1058
Note: See TracChangeset
for help on using the changeset viewer.