@@ -323,6 +323,7 @@ program cans
323
323
! post-process and write initial condition
324
324
!
325
325
write (fldnum,' (i7.7)' ) istep
326
+ ! $acc wait ! not needed but to prevent possible future issues
326
327
! $acc update self(u,v,w,p)
327
328
include ' out1d.h90'
328
329
include ' out2d.h90'
@@ -514,14 +515,17 @@ program cans
514
515
end if
515
516
write (fldnum,' (i7.7)' ) istep
516
517
if (mod (istep,iout1d) == 0 ) then
518
+ ! $acc wait
517
519
! $acc update self(u,v,w,p)
518
520
include ' out1d.h90'
519
521
end if
520
522
if (mod (istep,iout2d) == 0 ) then
523
+ ! $acc wait
521
524
! $acc update self(u,v,w,p)
522
525
include ' out2d.h90'
523
526
end if
524
527
if (mod (istep,iout3d) == 0 ) then
528
+ ! $acc wait
525
529
! $acc update self(u,v,w,p)
526
530
include ' out3d.h90'
527
531
end if
@@ -541,6 +545,7 @@ program cans
541
545
call out0d(trim (datadir)// ' log_checkpoints.out' ,3 ,var)
542
546
end if
543
547
end if
548
+ ! $acc wait
544
549
! $acc update self(u,v,w,p)
545
550
call load_all(' w' ,trim (datadir)// trim (filename),MPI_COMM_WORLD,ng,[1 ,1 ,1 ],lo,hi,u,v,w,p,time,istep)
546
551
if (.not. is_overwrite_save) then
0 commit comments