Skip to content

Commit bf37331

Browse files
authored
Small correction to CFL time-stepping (#630)
1 parent 17eb3de commit bf37331

File tree

7 files changed

+85
-283
lines changed

7 files changed

+85
-283
lines changed

src/simulation/m_start_up.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,13 +1102,13 @@ contains
11021102
integer :: i, j, k, l
11031103

11041104
if (cfl_dt) then
1105-
if (cfl_const_dt .and. t_step == 1) call s_compute_dt()
1105+
if (cfl_const_dt .and. t_step == 0) call s_compute_dt()
11061106

11071107
if (cfl_adap_dt) call s_compute_dt()
11081108

11091109
if (t_step == 0) dt_init = dt
11101110

1111-
if (dt < 1d-3*dt_init) call s_mpi_abort("Delta t has become too small")
1111+
if (dt < 1d-3*dt_init .and. cfl_adap_dt) call s_mpi_abort("Delta t has become too small")
11121112
end if
11131113

11141114
if (cfl_dt) then

tests/37FA2CEF/golden-metadata.txt

Lines changed: 17 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)