Skip to content

Commit 8026a1c

Browse files
authored
kernels fix (#926)
1 parent 0900648 commit 8026a1c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/simulation/m_data_output.fpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,14 @@ contains
316316
Rc_min_loc = minval(Rc_sf)
317317
end if
318318
#else
319-
#:call GPU_PARALLEL()
320-
icfl_max_loc = maxval(icfl_sf)
321-
#:endcall GPU_PARALLEL
319+
!$acc kernels
320+
icfl_max_loc = maxval(icfl_sf)
321+
!$acc end kernels
322322
if (viscous) then
323-
#:call GPU_PARALLEL()
324-
vcfl_max_loc = maxval(vcfl_sf)
325-
Rc_min_loc = minval(Rc_sf)
326-
#:endcall GPU_PARALLEL
323+
!$acc kernels
324+
vcfl_max_loc = maxval(vcfl_sf)
325+
Rc_min_loc = minval(Rc_sf)
326+
!$acc end kernels
327327
end if
328328
#endif
329329

src/simulation/m_time_steppers.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -993,9 +993,9 @@ contains
993993
end do
994994
end do
995995

996-
#:call GPU_PARALLEL()
997-
dt_local = minval(max_dt)
998-
#:endcall GPU_PARALLEL
996+
!$acc kernels
997+
dt_local = minval(max_dt)
998+
!$acc end kernels
999999

10001000
if (num_procs == 1) then
10011001
dt = dt_local

0 commit comments

Comments
 (0)