Changeset 3274 for palm/trunk/SOURCE/flow_statistics.f90
- Timestamp:
- Sep 24, 2018 3:42:55 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/flow_statistics.f90
r3241 r3274 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Modularization of all bulk cloud physics code components 28 ! 29 ! 3241 2018-09-12 15:02:00Z raasch 27 30 ! unused variables removed 28 31 ! … … 283 286 momentumflux_output_conversion, nc, nr, p, prho, prr, pt, q, & 284 287 qc, ql, qr, rho_air, rho_air_zw, rho_ocean, s, & 285 sa, u, ug, v, vg, vpt, w, w_subs, waterflux_output_conversion, zw 288 sa, u, ug, v, vg, vpt, w, w_subs, waterflux_output_conversion, & 289 zw, d_exner 286 290 287 USE cloud_parameters,&288 ONLY: l_d_cp, pt_d_t291 USE basic_constants_and_equations_mod, & 292 ONLY: g, lv_d_cp 289 293 290 294 USE control_parameters, & 291 ONLY: average_count_pr, cloud_droplets, cloud_physics, do_sum,&292 dt_3d, g, humidity, initializing_actions, land_surface,&295 ONLY: average_count_pr, cloud_droplets, do_sum, & 296 dt_3d, humidity, initializing_actions, land_surface, & 293 297 large_scale_forcing, large_scale_subsidence, max_pr_user, & 294 message_string, neutral, microphysics_morrison, & 295 microphysics_seifert, ocean, passive_scalar, simulated_time, & 296 simulated_time_at_begin, use_subsidence_tendencies, & 298 message_string, neutral, ocean, passive_scalar, simulated_time,& 299 simulated_time_at_begin, use_subsidence_tendencies, & 297 300 use_surface_fluxes, use_top_fluxes, ws_scheme_mom, & 298 301 ws_scheme_sca … … 313 316 314 317 USE kinds 318 319 USE bulk_cloud_model_mod, & 320 ONLY: bulk_cloud_model, microphysics_morrison, microphysics_seifert 315 321 316 322 USE land_surface_model_mod, & … … 515 521 ENDDO 516 522 ENDDO 517 IF ( cloud_physics) THEN523 IF ( bulk_cloud_model ) THEN 518 524 !$OMP DO 519 525 DO i = nxl, nxr … … 525 531 * flag 526 532 sums_l(k,43,tn) = sums_l(k,43,tn) + ( & 527 pt(k,j,i) + l _d_cp*pt_d_t(k) * ql(k,j,i) &533 pt(k,j,i) + lv_d_cp * d_exner(k) * ql(k,j,i) & 528 534 ) * rmask(j,i,sr) & 529 535 * flag … … 563 569 sums_l(:,41,0) = sums_l(:,41,0) + sums_l(:,41,i) 564 570 sums_l(:,44,0) = sums_l(:,44,0) + sums_l(:,44,i) 565 IF ( cloud_physics) THEN571 IF ( bulk_cloud_model ) THEN 566 572 sums_l(:,42,0) = sums_l(:,42,0) + sums_l(:,42,i) 567 573 sums_l(:,43,0) = sums_l(:,43,0) + sums_l(:,43,i) … … 598 604 CALL MPI_ALLREDUCE( sums_l(nzb,41,0), sums(nzb,41), nzt+2-nzb, & 599 605 MPI_REAL, MPI_SUM, comm2d, ierr ) 600 IF ( cloud_physics) THEN606 IF ( bulk_cloud_model ) THEN 601 607 IF ( collective_wait ) CALL MPI_BARRIER( comm2d, ierr ) 602 608 CALL MPI_ALLREDUCE( sums_l(nzb,42,0), sums(nzb,42), nzt+2-nzb, & … … 621 627 sums(:,44) = sums_l(:,44,0) 622 628 sums(:,41) = sums_l(:,41,0) 623 IF ( cloud_physics) THEN629 IF ( bulk_cloud_model ) THEN 624 630 sums(:,42) = sums_l(:,42,0) 625 631 sums(:,43) = sums_l(:,43,0) … … 654 660 hom(:,1,44,sr) = sums(:,44) ! vpt 655 661 hom(:,1,41,sr) = sums(:,41) ! qv (q) 656 IF ( cloud_physics) THEN662 IF ( bulk_cloud_model ) THEN 657 663 sums(:,42) = sums(:,42) / ngp_2dh_s_inner(:,sr) 658 664 sums(:,43) = sums(:,43) / ngp_2dh_s_inner(:,sr) … … 948 954 * ddzu(k+1) * rmask(j,i,sr) * flag 949 955 950 IF ( cloud_physics) THEN956 IF ( bulk_cloud_model ) THEN 951 957 sums_l(k,51,tn) = sums_l(k,51,tn) & 952 958 - 0.5_wp * ( kh(k,j,i) + kh(k+1,j,i) )& … … 1014 1020 * heatflux_output_conversion(k+ki) 1015 1021 ENDIF 1016 IF ( cloud_physics) THEN1022 IF ( bulk_cloud_model ) THEN 1017 1023 ! 1018 1024 !-- Formula does not work if ql(k+ki) /= 0.0 … … 1067 1073 * heatflux_output_conversion(nzb) 1068 1074 ENDIF 1069 IF ( cloud_physics) THEN1075 IF ( bulk_cloud_model ) THEN 1070 1076 ! 1071 1077 !-- Formula does not work if ql(nzb) /= 0.0 … … 1118 1124 * heatflux_output_conversion(nzb) 1119 1125 ENDIF 1120 IF ( cloud_physics) THEN1126 IF ( bulk_cloud_model ) THEN 1121 1127 ! 1122 1128 !-- Formula does not work if ql(nzb) /= 0.0 … … 1293 1299 * heatflux_output_conversion(nzt) 1294 1300 ENDIF 1295 IF ( cloud_physics) THEN1301 IF ( bulk_cloud_model ) THEN 1296 1302 ! 1297 1303 !-- Formula does not work if ql(nzb) /= 0.0 … … 1347 1353 !-- content, rain drop concentration and rain water content 1348 1354 IF ( humidity ) THEN 1349 IF ( cloud_physics.OR. cloud_droplets ) THEN1355 IF ( bulk_cloud_model .OR. cloud_droplets ) THEN 1350 1356 pts = 0.5_wp * ( vpt(k,j,i) - hom(k,1,44,sr) + & 1351 1357 vpt(k+1,j,i) - hom(k+1,1,44,sr) )
Note: See TracChangeset
for help on using the changeset viewer.