Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed computation of the dump_cadence when the user passes 0 (only du…
Browse files Browse the repository at this point in the history
…mp at the end)
  • Loading branch information
daminton committed Dec 1, 2022
1 parent a003255 commit 8d29013
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/swiftest_driver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ program swiftest_driver
character(*), parameter :: symbacompactfmt = '(";NPLM",ES22.15,$)'
type(swiftest_storage(nframes=:)), allocatable :: system_history


call io_get_args(integrator, param_file_name, display_style)

!> Read in the user-defined parameters file and the initial conditions of the system
Expand Down Expand Up @@ -87,7 +86,7 @@ program swiftest_driver
ioutput = int(istart / istep_out, kind=I8B)

! Set up system storage for intermittent file dumps
if (dump_cadence == 0) dump_cadence = nloops
if (dump_cadence == 0) dump_cadence = ceiling(nloops / (1.0_DP * istep_out), kind=I8B)
allocate(swiftest_storage(dump_cadence) :: system_history)
idump = dump_cadence

Expand Down

0 comments on commit 8d29013

Please sign in to comment.