Skip to content

Commit

Permalink
Small correction to CFL time-stepping (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfonba authored Sep 18, 2024
1 parent 17eb3de commit bf37331
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 283 deletions.
4 changes: 2 additions & 2 deletions src/simulation/m_start_up.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -1102,13 +1102,13 @@ contains
integer :: i, j, k, l

if (cfl_dt) then
if (cfl_const_dt .and. t_step == 1) call s_compute_dt()
if (cfl_const_dt .and. t_step == 0) call s_compute_dt()

if (cfl_adap_dt) call s_compute_dt()

if (t_step == 0) dt_init = dt

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

if (cfl_dt) then
Expand Down
100 changes: 17 additions & 83 deletions tests/37FA2CEF/golden-metadata.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bf37331

Please sign in to comment.