Skip to content

Commit f89a2ae

Browse files
Was not writing force value back onto the GPU copy of patch_ib
1 parent ade6d5e commit f89a2ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/simulation/m_ibm.fpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,10 +1054,12 @@ contains
10541054
end do
10551055

10561056
! apply the summed forces
1057+
$:GPU_PARALLEL_LOOP(private='[i]', copyin='[forces, torques]')
10571058
do i = 1, num_ibs
10581059
patch_ib(i)%force(:) = forces(i,:)
10591060
patch_ib(i)%torque(:) = torques(i,:)
10601061
end do
1062+
$:END_GPU_PARALLEL_LOOP()
10611063

10621064
call nvtxEndRange
10631065

0 commit comments

Comments
 (0)