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

Commit

Permalink
Browse files Browse the repository at this point in the history
Prints the tstep_out value whenever istep_out is given as an argument to get_simulation_time
  • Loading branch information
daminton committed Nov 9, 2022
1 parent 99c7619 commit 41c61b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/swiftest/swiftest/simulation_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def get_simulation_time(self, arg_list: str | List[str] | None = None):
"istep_out" : "",
"istep_dump" : ""}

if arg_list is not None and "tstep_out" in arg_list:
if arg_list is None or "tstep_out" in arg_list or "istep_out" in arg_list:
istep_out = self.param['ISTEP_OUT']
dt = self.param['DT']
tstep_out = istep_out * dt
Expand Down

0 comments on commit 41c61b1

Please sign in to comment.