From 57b140fe80080308922ba89f1f55c6e6f98ef30f Mon Sep 17 00:00:00 2001 From: David A Minton Date: Tue, 29 Nov 2022 17:04:20 -0500 Subject: [PATCH] Set it so that if you set read_old_output_file to True, it also reads the param file --- python/swiftest/swiftest/simulation_class.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/swiftest/swiftest/simulation_class.py b/python/swiftest/swiftest/simulation_class.py index 7669c774f..6a38fb23d 100644 --- a/python/swiftest/swiftest/simulation_class.py +++ b/python/swiftest/swiftest/simulation_class.py @@ -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