Skip to content

Commit e8b8abe

Browse files
committed
gamma update added
1 parent f230697 commit e8b8abe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

multi/main.f90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ program main
235235
allocate(mysin(nx), mycos(nx))
236236
do i=1,nx
237237
! compute here the sin to avoid multiple computations of sin
238-
mysin(i)=sin(k0*x(i))
238+
mysin(i)=sin(k0*x(i)+dx/2)
239239
! compute here the cos to avoid multiple computations of cos
240-
mycos(i)=cos(k0*x(i))
240+
mycos(i)=cos(k0*x(i)+dx/2)
241241
enddo
242242
!########################################################################################################################################
243243
! 1. INITIALIZATION AND cuDECOMP AUTOTUNING : END
@@ -439,6 +439,7 @@ program main
439439
enddo
440440
!$acc end kernels
441441

442+
gamma=1.d0*gumax
442443
!$acc parallel loop tile(16,4,2)
443444
do k=1+halo_ext, piX%shape(3)-halo_ext
444445
do j=1+halo_ext, piX%shape(2)-halo_ext

0 commit comments

Comments
 (0)