Skip to content

Commit 0e892dc

Browse files
sbryngelsonclaude
andcommitted
Add loop indices to private clauses in 3D viscous GPU loops
Add i,j,k,l to the private list for the 3D shear_stress and bulk_stress GPU parallel loops, matching the pattern already used by the analogous 2D loops at lines 105 and 215. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 01a0e33 commit 0e892dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/simulation/m_viscous.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ contains
318318
#:if not MFC_CASE_OPTIMIZATION or num_dims > 2
319319

320320
if (shear_stress) then ! Shear stresses
321-
$:GPU_PARALLEL_LOOP(collapse=3, private='[rho_visc, gamma_visc, pi_inf_visc, alpha_visc_sum, alpha_visc, alpha_rho_visc, Re_visc, tau_Re]')
321+
$:GPU_PARALLEL_LOOP(collapse=3, private='[i,j,k,l,rho_visc, gamma_visc, pi_inf_visc, alpha_visc_sum, alpha_visc, alpha_rho_visc, Re_visc, tau_Re]')
322322
do l = is3_viscous%beg, is3_viscous%end
323323
do k = -1, 1
324324
do j = is1_viscous%beg, is1_viscous%end
@@ -427,7 +427,7 @@ contains
427427
end if
428428

429429
if (bulk_stress) then ! Bulk stresses
430-
$:GPU_PARALLEL_LOOP(collapse=3, private='[rho_visc, gamma_visc, pi_inf_visc, alpha_visc_sum, alpha_visc, alpha_rho_visc, Re_visc, tau_Re]')
430+
$:GPU_PARALLEL_LOOP(collapse=3, private='[i,j,k,l,rho_visc, gamma_visc, pi_inf_visc, alpha_visc_sum, alpha_visc, alpha_rho_visc, Re_visc, tau_Re]')
431431
do l = is3_viscous%beg, is3_viscous%end
432432
do k = -1, 1
433433
do j = is1_viscous%beg, is1_viscous%end

0 commit comments

Comments
 (0)