Changeset 3467 for palm/trunk/SOURCE/advec_ws.f90
- Timestamp:
- Oct 30, 2018 7:05:21 PM (6 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE
-
palm/trunk/SOURCE/advec_ws.f90
r3302 r3467 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Implementation of a new aerosol module salsa. 28 ! 29 ! 3302 2018-10-03 02:39:40Z raasch 27 30 ! Stokes drift velocity added in scalar advection 28 31 ! … … 47 50 ! 2731 2018-01-09 17:44:02Z suehring 48 51 ! Enable loop vectorization by splitting the k-loop 49 ! 52 ! 50 53 ! 2718 2018-01-02 08:49:38Z maronga 51 54 ! Corrected "Former revisions" section … … 315 318 USE pegrid 316 319 320 USE salsa_util_mod, & 321 ONLY: sums_salsa_ws_l 322 317 323 USE statistics, & 318 324 ONLY: sums_us2_ws_l, sums_vs2_ws_l, sums_ws2_ws_l, sums_wsncs_ws_l,& … … 381 387 ALLOCATE( sums_wssas_ws_l(nzb:nzt+1,0:threads_per_task-1) ) 382 388 sums_wssas_ws_l = 0.0_wp 383 ENDIF 389 ENDIF 390 ! 391 !-- Mona: Now always allocated 392 ALLOCATE( sums_salsa_ws_l(nzb:nzt+1,0:threads_per_task-1) ) 393 sums_salsa_ws_l = 0.0_wp 384 394 385 395 ENDIF … … 1096 1106 ws_scheme_sca 1097 1107 1098 USE kinds 1108 USE kinds 1099 1109 1100 1110 USE bulk_cloud_model_mod, & 1101 1111 ONLY: bulk_cloud_model, microphysics_morrison, microphysics_seifert 1102 1112 1113 USE salsa_util_mod, & 1114 ONLY: sums_salsa_ws_l 1115 1103 1116 USE statistics, & 1104 1117 ONLY: sums_us2_ws_l, sums_vs2_ws_l, sums_ws2_ws_l, sums_wsncs_ws_l,& 1105 1118 sums_wsnrs_ws_l, sums_wspts_ws_l, sums_wsqcs_ws_l, & 1106 1119 sums_wsqrs_ws_l, sums_wsqs_ws_l, sums_wsss_ws_l, & 1107 sums_wssas_ws_l, sums_wsus_ws_l, sums_wsvs_ws_l 1120 sums_wssas_ws_l, sums_wsus_ws_l, sums_wsvs_ws_l 1108 1121 1109 1122 … … 1134 1147 ENDIF 1135 1148 IF ( ocean_mode ) sums_wssas_ws_l = 0.0_wp 1136 1149 1150 sums_salsa_ws_l = 0.0_wp 1151 1152 1137 1153 ENDIF 1138 1154 … … 1167 1183 USE pegrid 1168 1184 1185 USE salsa_util_mod, & 1186 ONLY: sums_salsa_ws_l 1187 1169 1188 USE statistics, & 1170 1189 ONLY: hom, sums_wsncs_ws_l, sums_wsnrs_ws_l, sums_wspts_ws_l, & 1171 1190 sums_wsqcs_ws_l, sums_wsqrs_ws_l, sums_wsqs_ws_l, & 1172 sums_wssas_ws_l, sums_wsss_ws_l, weight_substep 1191 sums_wssas_ws_l, sums_wsss_ws_l, weight_substep 1173 1192 1174 1193 … … 1704 1723 ) * weight_substep(intermediate_timestep_count) 1705 1724 ENDDO 1725 1726 CASE ( 'aerosol_mass', 'aerosol_number', 'salsa_gas' ) 1727 1728 DO k = nzb, nzt 1729 sums_salsa_ws_l(k,tn) = sums_salsa_ws_l(k,tn) + & 1730 ( flux_t(k) / ( w(k,j,i) + SIGN( 1.0E-20_wp, w(k,j,i) ) ) & 1731 * ( w(k,j,i) - hom(k,1,3,0) ) & 1732 + diss_t(k) / ( ABS(w(k,j,i)) + 1.0E-20_wp ) & 1733 * ABS( w(k,j,i) - hom(k,1,3,0) ) & 1734 ) * weight_substep(intermediate_timestep_count) 1735 ENDDO 1706 1736 1707 1737 ! CASE ( 'kc' ) … … 3211 3241 3212 3242 USE kinds 3243 3244 USE salsa_util_mod, & 3245 ONLY: sums_salsa_ws_l 3213 3246 3214 3247 USE statistics, & … … 3731 3764 * ABS(w(k,j,i) - hom(k,1,3,0) ) & 3732 3765 ) * weight_substep(intermediate_timestep_count) 3733 ENDDO 3766 ENDDO 3767 3768 CASE ( 'aerosol_mass', 'aerosol_number', 'salsa_gas' ) 3769 DO k = nzb, nzt 3770 sums_salsa_ws_l(k,tn) = sums_salsa_ws_l(k,tn) & 3771 + ( flux_t(k) & 3772 / ( w(k,j,i) + SIGN( 1.0E-20_wp, w(k,j,i) ) ) & 3773 * ( w(k,j,i) - hom(k,1,3,0) ) & 3774 + diss_t(k) & 3775 / ( ABS(w(k,j,i)) + 1.0E-20_wp ) & 3776 * ABS(w(k,j,i) - hom(k,1,3,0) ) & 3777 ) * weight_substep(intermediate_timestep_count) 3778 ENDDO 3734 3779 3735 3780
Note: See TracChangeset
for help on using the changeset viewer.