Skip to content

Commit

Permalink
Bring all local grid arrays computed on the device to the host.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-costa committed Apr 4, 2024
1 parent 4143011 commit 533a8e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ program cans
grid_vol_ratio_c(:) = dl(1)*dl(2)*dzc(:)/(l(1)*l(2)*l(3))
grid_vol_ratio_f(:) = dl(1)*dl(2)*dzf(:)/(l(1)*l(2)*l(3))
!$acc end kernels
!$acc update self(dzci,dzfi) async
!$acc update self(zc,zf,dzc,dzf,dzci,dzfi) async
!$acc exit data copyout(zc_g,zf_g,dzc_g,dzf_g,dzci_g,dzfi_g) async ! not needed on the device
!$acc wait
!
Expand Down Expand Up @@ -309,7 +309,6 @@ program cans
if(.not.restart) then
istep = 0
time = 0.
!$acc update self(zc,dzc,dzf)
call initflow(inivel,bcvel,ng,lo,l,dl,zc,zf,dzc,dzf,visc, &
is_forced,velf,bforce,is_wallturb,u,v,w,p)
if(myid == 0) print*, '*** Initial condition succesfully set ***'
Expand Down

0 comments on commit 533a8e3

Please sign in to comment.