Skip to content

Commit 8044eb2

Browse files
Hyeoksu LeeHyeoksu Lee
authored andcommitted
add dflt_adap_dt_max_iters
1 parent 3ada451 commit 8044eb2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/common/m_constants.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ module m_constants
5555

5656
! Strang Splitting constants
5757
real(wp), parameter :: dflt_adap_dt_tol = 1.e-4_wp !< Default tolerance for adaptive step size
58+
integer, parameter :: dflt_adap_dt_max_iters = 100 !< Default max iteration for adaptive step size
5859

5960
! Constants of the algorithm described by Heirer, E. Hairer S.P.Nørsett G. Wanner, Solving Ordinary Differential Equations I, Chapter II.4
6061
! to choose the initial time step size for the adaptive time stepping routine

src/simulation/m_global_parameters.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ contains
677677
adv_n = .false.
678678
adap_dt = .false.
679679
adap_dt_tol = dflt_real
680-
adap_dt_max_iters = 100
680+
adap_dt_max_iters = dflt_adap_dt_max_iters
681681
682682
pi_fac = 1._wp
683683

0 commit comments

Comments
 (0)