Skip to content

Commit e6c0e29

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 81e67a4 commit e6c0e29

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
@@ -319,7 +319,7 @@ contains
319319
#:if not MFC_CASE_OPTIMIZATION or num_dims > 2
320320

321321
if (shear_stress) then ! Shear stresses
322-
$: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]')
322+
$: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]')
323323
do l = is3_viscous%beg, is3_viscous%end
324324
do k = -1, 1
325325
do j = is1_viscous%beg, is1_viscous%end
@@ -428,7 +428,7 @@ contains
428428
end if
429429

430430
if (bulk_stress) then ! Bulk stresses
431-
$: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]')
431+
$: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]')
432432
do l = is3_viscous%beg, is3_viscous%end
433433
do k = -1, 1
434434
do j = is1_viscous%beg, is1_viscous%end

0 commit comments

Comments
 (0)