Skip to content

Commit 5c9d069

Browse files
hyeoksu-leeqodo-merge-pro[bot]Hyeoksu LeeHyeoksu Leewilfonba
authored
Refactor time_stepper (#1012)
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Ben Wilfong <[email protected]>
1 parent 1fbaaf8 commit 5c9d069

File tree

2 files changed

+95
-684
lines changed

2 files changed

+95
-684
lines changed

src/simulation/m_start_up.fpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,14 +1149,8 @@ contains
11491149
mytime = mytime + dt
11501150

11511151
! Total-variation-diminishing (TVD) Runge-Kutta (RK) time-steppers
1152-
if (time_stepper == 1) then
1153-
call s_1st_order_tvd_rk(t_step, time_avg)
1154-
elseif (time_stepper == 2) then
1155-
call s_2nd_order_tvd_rk(t_step, time_avg)
1156-
elseif (time_stepper == 3 .and. (.not. adap_dt)) then
1157-
call s_3rd_order_tvd_rk(t_step, time_avg)
1158-
elseif (time_stepper == 3 .and. adap_dt) then
1159-
call s_strang_splitting(t_step, time_avg)
1152+
if (any(time_stepper == (/1, 2, 3/))) then
1153+
call s_tvd_rk(t_step, time_avg, time_stepper)
11601154
end if
11611155

11621156
if (relax) call s_infinite_relaxation_k(q_cons_ts(1)%vf)

0 commit comments

Comments
 (0)