Skip to content

Commit e4ac9c1

Browse files
sbryngelsonclaude
andcommitted
Fix wrong 4th arg in viscous finite-difference gradient call
The finite-difference gradient call passed dq_prim_dy_qp (y-gradient) as the 4th argument instead of dq_prim_dz_qp (z-gradient). This meant the z-derivative was never computed in the FD path, and the y-derivative was written twice. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4ff0bef commit e4ac9c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/simulation/m_viscous.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ contains
985985
call s_compute_fd_gradient(q_prim_qp%vf(i), &
986986
dq_prim_dx_qp(1)%vf(i), &
987987
dq_prim_dy_qp(1)%vf(i), &
988-
dq_prim_dy_qp(1)%vf(i))
988+
dq_prim_dz_qp(1)%vf(i))
989989
end do
990990

991991
end if

0 commit comments

Comments
 (0)