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

Commit

Permalink
Force istep_out to be integer
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Jan 10, 2023
1 parent 79c2542 commit 9fbf1a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/swiftest/swiftest/simulation_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,10 +649,10 @@ def set_simulation_time(self,
update_list.append("istep_out")

if tstep_out is not None and dt is not None:
istep_out = int(np.floor(tstep_out / dt))
istep_out = int(tstep_out / dt)

if istep_out is not None:
self.param['ISTEP_OUT'] = istep_out
self.param['ISTEP_OUT'] = int(istep_out)

if dump_cadence is None:
dump_cadence = self.param.pop("DUMP_CADENCE", 1)
Expand Down

0 comments on commit 9fbf1a3

Please sign in to comment.