Changeset 1111 for palm/trunk/SOURCE/time_integration.f90
- Timestamp:
- Mar 8, 2013 11:54:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/time_integration.f90
r1093 r1111 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! +internal timestep counter for cpu statistics added, 23 ! openACC directives updated 23 24 ! 24 25 ! Former revisions: … … 238 239 !-- Exchange of ghost points (lateral boundary conditions) 239 240 CALL cpu_log( log_point(26), 'exchange-horiz-progn', 'start' ) 241 !$acc update host( e_p, pt_p, u_p, v_p, w_p ) 240 242 CALL exchange_horiz( u_p, nbgp ) 241 243 CALL exchange_horiz( v_p, nbgp ) … … 272 274 ! 273 275 !-- Swap the time levels in preparation for the next time step. 276 !$acc update device( e_p, pt_p, u_p, v_p, w_p ) 274 277 CALL swap_timelevel 275 278 … … 298 301 time_disturb = time_disturb + dt_3d 299 302 IF ( time_disturb >= dt_disturb ) THEN 303 !$acc update host( u, v ) 300 304 IF ( hom(nzb+5,1,pr_palm,0) < disturbance_energy_limit ) THEN 301 305 CALL disturb_field( nzb_u_inner, tend, u ) … … 310 314 dist_range = 0 311 315 ENDIF 316 !$acc update device( u, v ) 312 317 time_disturb = time_disturb - dt_disturb 313 318 ENDIF … … 321 326 CALL pres 322 327 ENDIF 323 !324 !-- Update device memory for calculating diffusion quantities and for next325 !-- timestep326 !$acc update device( e, pt, u, v, w )327 !$acc update device( q ) if ( allocated( q ) )328 328 329 329 ! … … 351 351 CALL prandtl_fluxes 352 352 CALL cpu_log( log_point(19), 'prandtl_fluxes', 'stop' ) 353 !354 !++ Statistics still require updates on host355 !$acc update host( qs, qsws, rif, shf, ts )356 353 ENDIF 357 354 … … 369 366 ENDIF 370 367 CALL cpu_log( log_point(17), 'diffusivities', 'stop' ) 371 !372 !++ Statistics still require update of diffusivities on host373 !$acc update host( kh, km )374 368 375 369 ENDIF … … 379 373 ! 380 374 !-- Increase simulation time and output times 375 nr_timesteps_this_run = nr_timesteps_this_run + 1 381 376 current_timestep_number = current_timestep_number + 1 382 377 simulated_time = simulated_time + dt_3d
Note: See TracChangeset
for help on using the changeset viewer.