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

Commit

Permalink
Set it so that if you set read_old_output_file to True, it also reads…
Browse files Browse the repository at this point in the history
… the param file
  • Loading branch information
daminton committed Nov 29, 2022
1 parent 1b8a91f commit 57b140f
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 @@ -320,9 +320,9 @@ def __init__(self,read_param: bool = False, **kwargs: Any):
# Higher Priority: Values from a file (if requested and it exists)
#-----------------------------------------------------------------

# If the user asks to read in an old parameter file, override any default parameters with values from the file
# If the user asks to read in an old parameter file or output file, override any default parameters with values from the file
# If the file doesn't exist, flag it for now so we know to create it
if read_param:
if read_param or read_old_output_file:
#good_param is self.read_param()
if self.read_param():
# We will add the parameter file to the kwarg list. This will keep the set_parameter method from
Expand Down

0 comments on commit 57b140f

Please sign in to comment.