Skip to content

Commit 59fa254

Browse files
committed
Update levelset_norm to devices
1 parent fb3b0f1 commit 59fa254

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/simulation/m_ibm.fpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ contains
8181
integer :: i, j, k
8282

8383
!$acc update device(ib_markers%sf)
84+
!$acc update device(levelset%sf)
85+
!$acc update device(levelset_norm%sf)
8486

8587
! Get neighboring IB variables from other processors
8688
call s_mpi_sendrecv_ib_buffers(ib_markers, gp_layers)
@@ -208,7 +210,7 @@ contains
208210

209211
! Calculate velocity of ghost cell
210212
if (gp%slip) then
211-
norm = levelset_norm%sf(gp%loc(1), gp%loc(2), gp%loc(3), gp%ib_patch_id, 1:3)
213+
norm(1:3) = levelset_norm%sf(gp%loc(1), gp%loc(2), gp%loc(3), gp%ib_patch_id, 1:3)
212214
buf = sqrt(sum(norm**2))
213215
norm = norm/buf
214216
vel_norm_IP = sum(vel_IP*norm)*norm

0 commit comments

Comments
 (0)