Changeset 1320 for palm/trunk/SOURCE/calc_precipitation.f90
- Timestamp:
- Mar 20, 2014 8:40:49 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/calc_precipitation.f90
r1310 r1320 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! ONLY-attribute added to USE-statements, 23 ! kind-parameters added to all INTEGER and REAL declaration statements, 24 ! kinds are defined in new module kinds, 25 ! revision history before 2012 removed, 26 ! comment fields (!:) to be used for variable explanations added to 27 ! all variable declaration statements 23 28 ! 24 29 ! Former revisions: … … 28 33 ! 1036 2012-10-22 13:43:42Z raasch 29 34 ! code put under GPL (PALM 3.9) 30 !31 ! 403 2009-10-22 13:57:16Z franke32 ! Bugfix in calculation of precipitation_rate(j,i)33 !34 ! 73 2007-03-20 08:33:14Z raasch35 ! Precipitation rate and amount are calculated/stored,36 ! + module control_parameters37 !38 ! 19 2007-02-23 04:53:48Z raasch39 ! Calculation extended for gridpoint nzt40 !41 ! RCS Log replace by Id keyword, revision history cleaned up42 !43 ! Revision 1.5 2004/01/30 10:15:57 raasch44 ! Scalar lower k index nzb replaced by 2d-array nzb_2d45 35 ! 46 36 ! Revision 1.1 2000/04/13 14:45:22 schroeter … … 71 61 SUBROUTINE calc_precipitation 72 62 73 USE arrays_3d 74 USE cloud_parameters 75 USE constants 76 USE control_parameters 77 USE indices 63 USE arrays_3d, & 64 ONLY: dzw, ql, tend 65 66 USE cloud_parameters, & 67 ONLY: precipitation_amount, precipitation_rate, prec_time_const, & 68 ql_crit 69 70 USE control_parameters, & 71 ONLY: dt_do2d_xy, dt_3d, & 72 intermediate_timestep_count, intermediate_timestep_count_max,& 73 precipitation_amount_interval, time_do2d_xy 74 75 USE indices, & 76 ONLY: nxl, nxr, nyn, nys, nzb_2d, nzt 77 78 USE kinds 79 78 80 79 81 IMPLICIT NONE 80 82 81 INTEGER :: i, j, k 82 REAL :: dqdt_precip 83 INTEGER(iwp) :: i !: 84 INTEGER(iwp) :: j !: 85 INTEGER(iwp) :: k !: 86 87 REAL(wp) :: dqdt_precip !: 83 88 84 89 precipitation_rate = 0.0 … … 96 101 ! 97 102 !-- Precipitation rate in kg / m**2 / s (= mm/s) 98 precipitation_rate(j,i) = precipitation_rate(j,i) + &103 precipitation_rate(j,i) = precipitation_rate(j,i) + & 99 104 dqdt_precip * dzw(k) 100 105 … … 102 107 ! 103 108 !-- Sum up the precipitation amount, unit kg / m**2 (= mm) 104 IF ( intermediate_timestep_count == &105 intermediate_timestep_count_max .AND. &109 IF ( intermediate_timestep_count == & 110 intermediate_timestep_count_max .AND. & 106 111 ( dt_do2d_xy-time_do2d_xy ) < precipitation_amount_interval )& 107 112 THEN 108 precipitation_amount(j,i) = precipitation_amount(j,i) + &113 precipitation_amount(j,i) = precipitation_amount(j,i) + & 109 114 precipitation_rate(j,i) * dt_3d 110 115 ENDIF … … 120 125 SUBROUTINE calc_precipitation_ij( i, j ) 121 126 122 USE arrays_3d 123 USE cloud_parameters 124 USE constants 125 USE control_parameters 126 USE indices 127 USE arrays_3d, & 128 ONLY: dzw, ql, tend 129 130 USE cloud_parameters, & 131 ONLY: precipitation_amount, precipitation_rate, prec_time_const, & 132 ql_crit 133 134 USE control_parameters, & 135 ONLY: dt_do2d_xy, dt_3d, & 136 intermediate_timestep_count, intermediate_timestep_count_max,& 137 precipitation_amount_interval, time_do2d_xy 138 139 USE indices, & 140 ONLY: nzb_2d, nzt 141 142 USE kinds 143 127 144 128 145 IMPLICIT NONE 129 146 130 INTEGER :: i, j, k 131 REAL :: dqdt_precip 147 INTEGER(iwp) :: i !: 148 INTEGER(iwp) :: j !: 149 INTEGER(iwp) :: k !: 150 151 REAL(wp) :: dqdt_precip !: 132 152 133 153 precipitation_rate(j,i) = 0.0 … … 147 167 ! 148 168 !-- Precipitation rate in kg / m**2 / s (= mm/s) 149 precipitation_rate(j,i) = precipitation_rate(j,i) + dqdt_precip * &169 precipitation_rate(j,i) = precipitation_rate(j,i) + dqdt_precip * & 150 170 dzw(k) 151 171 … … 157 177 .AND. ( dt_do2d_xy-time_do2d_xy ) < precipitation_amount_interval )& 158 178 THEN 159 precipitation_amount(j,i) = precipitation_amount(j,i) + &179 precipitation_amount(j,i) = precipitation_amount(j,i) + & 160 180 precipitation_rate(j,i) * dt_3d 161 181 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.