Changeset 1365 for palm/trunk/SOURCE/time_integration.f90
- Timestamp:
- Apr 22, 2014 3:03:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/time_integration.f90
r1343 r1365 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 23 ! 22 ! Reset sums_ls_l to zero at each timestep 23 ! +sums_ls_l 24 ! Calculation of reference state (previously in subroutine calc_mean_profile) 25 24 26 ! Former revisions: 25 27 ! ----------------- … … 126 128 127 129 USE arrays_3d, & 128 ONLY: diss, e_p, nr_p, prho, pt, pt_p, q l, ql_c, ql_v, ql_vp, qr_p,&129 q_p, r ho, sa_p, tend, u, u_p, v, vpt, v_p, w_p130 131 USE buoyancy_mod,&130 ONLY: diss, e_p, nr_p, prho, pt, pt_p, q, ql, ql_c, ql_v, ql_vp, qr_p,& 131 q_p, ref_state, rho, sa_p, tend, u, u_p, v, vpt, v_p, w_p 132 133 USE calc_mean_profile_mod, & 132 134 ONLY: calc_mean_profile 133 135 … … 149 151 intermediate_timestep_count_max, large_scale_forcing, & 150 152 loop_optimization, lsf_surf, lsf_vert, masks, mid, & 151 netcdf_data_format, neutral, nr_timesteps_this_run, ocean,&152 o n_device, passive_scalar, prandtl_layer, precipitation,&153 netcdf_data_format, neutral, nr_timesteps_this_run, nudging, & 154 ocean, on_device, passive_scalar, prandtl_layer, precipitation, & 153 155 prho_reference, pt_reference, pt_slope_offset, random_heatflux, & 154 156 run_coupled, simulated_time, simulated_time_chr, & … … 181 183 ONLY: ls_forcing_surf, ls_forcing_vert 182 184 185 USE nudge_mod, & 186 ONLY: calc_tnudge 187 183 188 USE particle_attributes, & 184 189 ONLY: particle_advection, particle_advection_start, wang_kernel … … 194 199 195 200 USE statistics, & 196 ONLY: flow_statistics_called, hom, pr_palm 201 ONLY: flow_statistics_called, hom, pr_palm, sums_ls_l 197 202 198 203 USE user_actions_mod, & … … 253 258 !-- Determine ug, vg and w_subs in dependence on data from external file 254 259 !-- LSF_DATA 255 IF ( large_scale_forcing .AND. lsf_vert ) THEN260 IF ( large_scale_forcing .AND. lsf_vert ) THEN 256 261 CALL ls_forcing_vert ( simulated_time ) 262 sums_ls_l = 0.0_wp 257 263 ENDIF 258 264 … … 283 289 !-- buoyancy terms (WARNING: only the respective last call of 284 290 !-- calc_mean_profile defines the reference state!) 285 IF ( .NOT. neutral ) CALL calc_mean_profile( pt, 4, 'time_int' ) 286 IF ( ocean ) CALL calc_mean_profile( rho, 64, 'time_int' ) 287 IF ( humidity ) CALL calc_mean_profile( vpt, 44, 'time_int' ) 291 IF ( .NOT. neutral ) THEN 292 CALL calc_mean_profile( pt, 4 ) 293 ref_state(:) = hom(:,1,4,0) ! this is used in the buoyancy term 294 ENDIF 295 IF ( ocean ) THEN 296 CALL calc_mean_profile( rho, 64 ) 297 ref_state(:) = hom(:,1,64,0) 298 ENDIF 299 IF ( humidity ) THEN 300 CALL calc_mean_profile( vpt, 44 ) 301 ref_state(:) = hom(:,1,44,0) 302 ENDIF 303 288 304 ENDIF 289 305 … … 291 307 IF ( ( ws_scheme_mom .OR. ws_scheme_sca ) .AND. & 292 308 intermediate_timestep_count == 1 ) CALL ws_statistics 309 ! 310 !-- In case of nudging calculate current nudging time scale and horizontal 311 !-- means of u,v,pt and q 312 IF ( nudging ) THEN 313 CALL calc_tnudge( simulated_time ) 314 CALL calc_mean_profile( u, 1 ) 315 CALL calc_mean_profile( v, 2 ) 316 CALL calc_mean_profile( pt, 4 ) 317 CALL calc_mean_profile( q, 41 ) 318 ENDIF 293 319 294 320 !
Note: See TracChangeset
for help on using the changeset viewer.