Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/simulation/m_ib_patches.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ contains
do yp = yp_lower, yp_upper
do zp = zp_lower, zp_upper
$:GPU_PARALLEL_LOOP(private='[i, il, ir, j, jl, jr, k, kl, kr, xyz_local, length, radius, patch_id, &
& airfoil_id, model_id, encoded_patch_id, center, eta]', copyin='[xp, yp, zp]')
& airfoil_id, model_id, encoded_patch_id, center, eta]', copyin='[xp, yp, zp]', parallelism='[gang]')
do patch_id = 1, num_ibs
center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(glb_bounds(1)%end - glb_bounds(1)%beg)
center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(glb_bounds(2)%end - glb_bounds(2)%beg)
Expand All @@ -229,6 +229,8 @@ contains
! find the indices to the left and right of the IB in i, j, k
call s_get_bounding_indices(patch_ib(patch_id), center, il, ir, jl, jr, kl, kr)

$:GPU_LOOP(collapse=3, parallelism='[vector]', private='[xyz_local, length, radius, airfoil_id, &
& model_id, eta]')
do k = kl, kr
do j = jl, jr
do i = il, ir
Expand Down Expand Up @@ -301,7 +303,7 @@ contains
do xp = xp_lower, xp_upper
do yp = yp_lower, yp_upper
$:GPU_PARALLEL_LOOP(private='[i, il, ir, j, jl, jr, xyz_local, length, radius, patch_id, airfoil_id, &
& model_id, encoded_patch_id, center, eta]', copyin='[xp, yp]')
& model_id, encoded_patch_id, center, eta]', copyin='[xp, yp]', parallelism='[gang]')
do patch_id = 1, num_ibs
center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(glb_bounds(1)%end - glb_bounds(1)%beg)
center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(glb_bounds(2)%end - glb_bounds(2)%beg)
Expand All @@ -313,6 +315,8 @@ contains
! find the indices to the left and right of the IB in i, j, k
call s_get_bounding_indices(patch_ib(patch_id), center, il, ir, jl, jr, kl, kr)

$:GPU_LOOP(collapse=2, parallelism='[vector]', &
& private='[xyz_local, length, radius, airfoil_id, model_id, eta]')
do j = jl, jr
do i = il, ir
! get coordinate frame centered on IB
Expand Down
Loading