Skip to content

Commit

Permalink
Fix 3D IBM Infinite CFL Number on GPUs (#519)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Briney <sbriney@login12.ufhpc>
  • Loading branch information
Sam-Briney and Samuel Briney authored Jul 13, 2024
1 parent 78015b3 commit 8c7f281
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
4 changes: 4 additions & 0 deletions src/simulation/m_start_up.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,10 @@ contains
!$acc update device(palpha_eps, ptgalpha_eps)
end if

if (ib) then
!$acc update device(ib_markers%sf)
end if

end subroutine s_initialize_gpu_vars

subroutine s_finalize_modules
Expand Down
24 changes: 0 additions & 24 deletions src/simulation/m_time_steppers.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,14 +303,6 @@ contains

call s_compute_rhs(q_cons_ts(1)%vf, q_prim_vf, rhs_vf, pb_ts(1)%sf, rhs_pb, mv_ts(1)%sf, rhs_mv, t_step, time_avg)

if (ib .and. t_step == 1) then
if (qbmm .and. .not. polytropic) then
call s_ibm_correct_state(q_cons_ts(1)%vf, q_prim_vf, pb_ts(1)%sf, mv_ts(1)%sf)
else
call s_ibm_correct_state(q_cons_ts(1)%vf, q_prim_vf)
end if
end if

#ifdef DEBUG
print *, 'got rhs'
#endif
Expand Down Expand Up @@ -420,14 +412,6 @@ contains

call s_compute_rhs(q_cons_ts(1)%vf, q_prim_vf, rhs_vf, pb_ts(1)%sf, rhs_pb, mv_ts(1)%sf, rhs_mv, t_step, time_avg)

if (ib .and. t_step == 1) then
if (qbmm .and. .not. polytropic) then
call s_ibm_correct_state(q_cons_ts(1)%vf, q_prim_vf, pb_ts(1)%sf, mv_ts(1)%sf)
else
call s_ibm_correct_state(q_cons_ts(1)%vf, q_prim_vf)
end if
end if

if (run_time_info) then
call s_write_run_time_information(q_prim_vf, t_step)
end if
Expand Down Expand Up @@ -609,14 +593,6 @@ contains

call s_compute_rhs(q_cons_ts(1)%vf, q_prim_vf, rhs_vf, pb_ts(1)%sf, rhs_pb, mv_ts(1)%sf, rhs_mv, t_step, time_avg)

if (ib .and. t_step == 1) then
if (qbmm .and. .not. polytropic) then
call s_ibm_correct_state(q_cons_ts(1)%vf, q_prim_vf, pb_ts(1)%sf, mv_ts(1)%sf)
else
call s_ibm_correct_state(q_cons_ts(1)%vf, q_prim_vf)
end if
end if

if (run_time_info) then
call s_write_run_time_information(q_prim_vf, t_step)
end if
Expand Down

0 comments on commit 8c7f281

Please sign in to comment.