Skip to content

Commit ad6d4b8

Browse files
committed
fix gpu
1 parent 9e963f2 commit ad6d4b8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/simulation/m_weno.fpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -917,15 +917,14 @@ contains
917917
elseif (weno_order == 7) then
918918
#:for WENO_DIR, XYZ in [(1, 'x'), (2, 'y'), (3, 'z')]
919919
if (weno_dir == ${WENO_DIR}$) then
920-
!$acc parallel loop vector gang collapse(3) default(present) private(poly, beta, alpha, omega, tau, delta, v)
921-
! Note: dvd is not used as the equations are not cast in terms of the differences
920+
!$acc parallel loop vector gang collapse(3) default(present) private(poly, beta, alpha, omega, tau, delta, dvd, v)
922921
do l = is3_weno%beg, is3_weno%end
923922
do k = is2_weno%beg, is2_weno%end
924923
do j = is1_weno%beg, is1_weno%end
925924
!$acc loop seq
926925
do i = 1, v_size
927926

928-
v = v_rs_ws_${XYZ}$ (j - 3:j + 3, k, l, i) ! temporary field value array for clarity
927+
if (teno) v = v_rs_ws_${XYZ}$ (j - 3:j + 3, k, l, i) ! temporary field value array for clarity
929928

930929
if (.not. teno) then
931930
dvd(2) = v_rs_ws_${XYZ}$ (j + 3, k, l, i) &

0 commit comments

Comments
 (0)