Skip to content

Commit 4b34ed9

Browse files
sbryngelsonclaude
andcommitted
Fix hyper_cleaning psi initialization only covering k=0 plane
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1584480 commit 4b34ed9

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/pre_process/m_start_up.fpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ contains
765765

766766
real(wp), intent(inout) :: start, finish
767767

768-
integer :: j, k
768+
integer :: j, k, l
769769

770770
! Setting up the grid and the initial condition. If the grid is read in from
771771
! preexisting grid data files, it is checked for consistency. If the grid is
@@ -785,10 +785,12 @@ contains
785785

786786
! hard-coded psi
787787
if (hyper_cleaning) then
788-
do j = 0, m
788+
do l = 0, p
789789
do k = 0, n
790-
q_cons_vf(psi_idx)%sf(j, k, 0) = 1d-2*exp(-(x_cc(j)**2 + y_cc(k)**2)/(2.0*0.05**2))
791-
q_prim_vf(psi_idx)%sf(j, k, 0) = q_cons_vf(psi_idx)%sf(j, k, 0)
790+
do j = 0, m
791+
q_cons_vf(psi_idx)%sf(j, k, l) = 1d-2*exp(-(x_cc(j)**2 + y_cc(k)**2 + z_cc(l)**2)/(2.0*0.05**2))
792+
q_prim_vf(psi_idx)%sf(j, k, l) = q_cons_vf(psi_idx)%sf(j, k, l)
793+
end do
792794
end do
793795
end do
794796
end if

0 commit comments

Comments
 (0)