Skip to content

Commit 8c7f281

Browse files
Sam-BrineySamuel Briney
andauthored
Fix 3D IBM Infinite CFL Number on GPUs (#519)
Co-authored-by: Samuel Briney <[email protected]>
1 parent 78015b3 commit 8c7f281

File tree

2 files changed

+4
-24
lines changed

2 files changed

+4
-24
lines changed

src/simulation/m_start_up.fpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,6 +1417,10 @@ contains
14171417
!$acc update device(palpha_eps, ptgalpha_eps)
14181418
end if
14191419

1420+
if (ib) then
1421+
!$acc update device(ib_markers%sf)
1422+
end if
1423+
14201424
end subroutine s_initialize_gpu_vars
14211425

14221426
subroutine s_finalize_modules

src/simulation/m_time_steppers.fpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,6 @@ contains
303303

304304
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)
305305

306-
if (ib .and. t_step == 1) then
307-
if (qbmm .and. .not. polytropic) then
308-
call s_ibm_correct_state(q_cons_ts(1)%vf, q_prim_vf, pb_ts(1)%sf, mv_ts(1)%sf)
309-
else
310-
call s_ibm_correct_state(q_cons_ts(1)%vf, q_prim_vf)
311-
end if
312-
end if
313-
314306
#ifdef DEBUG
315307
print *, 'got rhs'
316308
#endif
@@ -420,14 +412,6 @@ contains
420412

421413
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)
422414

423-
if (ib .and. t_step == 1) then
424-
if (qbmm .and. .not. polytropic) then
425-
call s_ibm_correct_state(q_cons_ts(1)%vf, q_prim_vf, pb_ts(1)%sf, mv_ts(1)%sf)
426-
else
427-
call s_ibm_correct_state(q_cons_ts(1)%vf, q_prim_vf)
428-
end if
429-
end if
430-
431415
if (run_time_info) then
432416
call s_write_run_time_information(q_prim_vf, t_step)
433417
end if
@@ -609,14 +593,6 @@ contains
609593

610594
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)
611595

612-
if (ib .and. t_step == 1) then
613-
if (qbmm .and. .not. polytropic) then
614-
call s_ibm_correct_state(q_cons_ts(1)%vf, q_prim_vf, pb_ts(1)%sf, mv_ts(1)%sf)
615-
else
616-
call s_ibm_correct_state(q_cons_ts(1)%vf, q_prim_vf)
617-
end if
618-
end if
619-
620596
if (run_time_info) then
621597
call s_write_run_time_information(q_prim_vf, t_step)
622598
end if

0 commit comments

Comments
 (0)