Skip to content

Commit e422cf3

Browse files
committed
OpenACC: fix copyin ranges
1 parent 376fbeb commit e422cf3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/modtracers.f90

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,20 +204,20 @@ subroutine allocate_tracers
204204
sv0av(:,:) = 0
205205
svprof(:,:) = 0
206206

207-
!$acc enter data copyin(svm(2-ih:i1+ih,2-jh:j1+jh,k1,nsv), &
208-
!$acc& sv0(2-ih:i1+ih,2-jh:j1+jh,k1,nsv), &
209-
!$acc& svp(2-ih:i1+ih,2-jh:j1+jh,k1,nsv), &
210-
!$acc& sv0av(k1,nsv), svprof(k1,nsv))
207+
!$acc enter data copyin(svm(2-ih:i1+ih,2-jh:j1+jh,1:k1,1:nsv), &
208+
!$acc& sv0(2-ih:i1+ih,2-jh:j1+jh,1:k1,1:nsv), &
209+
!$acc& svp(2-ih:i1+ih,2-jh:j1+jh,1:k1,1:nsv), &
210+
!$acc& sv0av(1:k1,1:nsv), svprof(1:k1,1:nsv))
211211

212212
end subroutine allocate_tracers
213213

214214
!> Deallocates all tracers fields
215215
subroutine exittracers
216216

217-
!$acc exit data delete(svm(2-ih:i1+ih,2-jh:j1+jh,k1,nsv), &
218-
!$acc& sv0(2-ih:i1+ih,2-jh:j1+jh,k1,nsv), &
219-
!$acc& svp(2-ih:i1+ih,2-jh:j1+jh,k1,nsv), &
220-
!$acc& sv0av(k1,nsv), svprof(k1,nsv))
217+
!$acc exit data delete(svm(2-ih:i1+ih,2-jh:j1+jh,1:k1,1:nsv), &
218+
!$acc& sv0(2-ih:i1+ih,2-jh:j1+jh,1:k1,1:nsv), &
219+
!$acc& svp(2-ih:i1+ih,2-jh:j1+jh,1:k1,1:nsv), &
220+
!$acc& sv0av(1:k1,1:nsv), svprof(1:k1,1:nsv))
221221

222222
if (nsv > 0) then
223223
deallocate(tracer_prop)

0 commit comments

Comments
 (0)