Skip to content

Commit 2274551

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 5f75aa6 commit 2274551

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
@@ -767,7 +767,7 @@ contains
767767

768768
real(wp), intent(inout) :: start, finish
769769

770-
integer :: j, k
770+
integer :: j, k, l
771771

772772
! Setting up the grid and the initial condition. If the grid is read in from
773773
! preexisting grid data files, it is checked for consistency. If the grid is
@@ -787,10 +787,12 @@ contains
787787

788788
! hard-coded psi
789789
if (hyper_cleaning) then
790-
do j = 0, m
790+
do l = 0, p
791791
do k = 0, n
792-
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))
793-
q_prim_vf(psi_idx)%sf(j, k, 0) = q_cons_vf(psi_idx)%sf(j, k, 0)
792+
do j = 0, m
793+
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))
794+
q_prim_vf(psi_idx)%sf(j, k, l) = q_cons_vf(psi_idx)%sf(j, k, l)
795+
end do
794796
end do
795797
end do
796798
end if

0 commit comments

Comments
 (0)