Commit 80a88fb0 authored by Pierre Augier's avatar Pierre Augier
Browse files

Fix to load old simulations

parent f55aaf37570d
Pipeline #20630 passed with stage
in 11 minutes and 42 seconds
......@@ -111,8 +111,13 @@ max_elapsed: number or str (default None)
except ValueError:
warn("Cannot handle signals - is multithreading on?")
if self.params.time_stepping.max_elapsed is not None:
try:
param_max_elapsed = self.params.time_stepping.max_elapsed
except AttributeError:
# loading an old simulation?
param_max_elapsed = None
if param_max_elapsed is not None:
try:
self.max_elapsed = float(param_max_elapsed)
except ValueError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment