Skip to content

Commit caa2274

Browse files
Explicit GPU declares for friction
1 parent 58715aa commit caa2274

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/simulation/m_collisions.fpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ contains
4343

4444
wall_overlap_distances = 0
4545
$:GPU_UPDATE(device='[wall_overlap_distances]')
46+
$:GPU_UPDATE(device='[ib_coefficient_of_friction]')
4647

4748
end subroutine s_initialize_collisions_module
4849

@@ -221,6 +222,8 @@ contains
221222
end do
222223
$:END_GPU_PARALLEL_LOOP()
223224

225+
print *, forces(1,1:3)
226+
224227
end subroutine s_apply_wall_collision_forces_soft_sphere
225228

226229
!> uses ghost-point/image-point information to determine if it is possible if two IBs are colliding, effectively an optimized

src/simulation/m_global_parameters.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ module m_global_parameters
364364
integer :: Np
365365

366366
$:GPU_DECLARE(create='[ib, num_ibs, patch_ib, Np, airfoil_grid_u, airfoil_grid_l]')
367+
$:GPU_DECLARE(create='[ib_coefficient_of_friction]')
367368
!> @}
368369

369370
!> @name Bubble modeling

0 commit comments

Comments
 (0)