File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -235,9 +235,9 @@ program main
235
235
allocate (mysin(nx), mycos(nx))
236
236
do i= 1 ,nx
237
237
! 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 )
239
239
! 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 )
241
241
enddo
242
242
! ########################################################################################################################################
243
243
! 1. INITIALIZATION AND cuDECOMP AUTOTUNING : END
@@ -439,6 +439,7 @@ program main
439
439
enddo
440
440
! $acc end kernels
441
441
442
+ gamma= 1.d0 * gumax
442
443
! $acc parallel loop tile(16,4,2)
443
444
do k= 1 + halo_ext, piX% shape (3 )- halo_ext
444
445
do j= 1 + halo_ext, piX% shape (2 )- halo_ext
You can’t perform that action at this time.
0 commit comments