- Timestamp:
- Sep 2, 2015 4:00:10 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/microphysics.f90
r1362 r1646 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! Bugfix: Wrong computation of d_mean. 23 23 ! 24 24 ! Former revisions: … … 877 877 878 878 DO k = nzb_s_inner(j,i)+1, nzt 879 d_mean = 0.5_wp * ( qr(k+1,j,i) +qr(k-1,j,i) )879 d_mean = 0.5_wp * ( qr(k+1,j,i) - qr(k-1,j,i) ) 880 880 d_min = qr(k,j,i) - MIN( qr(k+1,j,i), qr(k,j,i), qr(k-1,j,i) ) 881 881 d_max = MAX( qr(k+1,j,i), qr(k,j,i), qr(k-1,j,i) ) - qr(k,j,i) … … 885 885 ABS( d_mean ) ) 886 886 887 d_mean = 0.5_wp * ( nr(k+1,j,i) +nr(k-1,j,i) )887 d_mean = 0.5_wp * ( nr(k+1,j,i) - nr(k-1,j,i) ) 888 888 d_min = nr(k,j,i) - MIN( nr(k+1,j,i), nr(k,j,i), nr(k-1,j,i) ) 889 889 d_max = MAX( nr(k+1,j,i), nr(k,j,i), nr(k-1,j,i) ) - nr(k,j,i) … … 1685 1685 1686 1686 DO k = nzb_s_inner(j,i)+1, nzt 1687 d_mean = 0.5_wp * ( qr_1d(k+1) +qr_1d(k-1) )1687 d_mean = 0.5_wp * ( qr_1d(k+1) - qr_1d(k-1) ) 1688 1688 d_min = qr_1d(k) - MIN( qr_1d(k+1), qr_1d(k), qr_1d(k-1) ) 1689 1689 d_max = MAX( qr_1d(k+1), qr_1d(k), qr_1d(k-1) ) - qr_1d(k) … … 1693 1693 ABS( d_mean ) ) 1694 1694 1695 d_mean = 0.5_wp * ( nr_1d(k+1) +nr_1d(k-1) )1695 d_mean = 0.5_wp * ( nr_1d(k+1) - nr_1d(k-1) ) 1696 1696 d_min = nr_1d(k) - MIN( nr_1d(k+1), nr_1d(k), nr_1d(k-1) ) 1697 1697 d_max = MAX( nr_1d(k+1), nr_1d(k), nr_1d(k-1) ) - nr_1d(k)
Note: See TracChangeset
for help on using the changeset viewer.