Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fluiddyn
fluidsim
Commits
07a82a3633fd
Commit
80a88fb0
authored
Apr 15, 2021
by
Pierre Augier
Browse files
Fix to load old simulations
parent
f55aaf37570d
Pipeline
#20630
passed with stage
in 11 minutes and 42 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
fluidsim/base/time_stepping/base.py
View file @
07a82a36
...
@@ -111,8 +111,13 @@ max_elapsed: number or str (default None)
...
@@ -111,8 +111,13 @@ max_elapsed: number or str (default None)
except
ValueError
:
except
ValueError
:
warn
(
"Cannot handle signals - is multithreading on?"
)
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
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
:
try
:
self
.
max_elapsed
=
float
(
param_max_elapsed
)
self
.
max_elapsed
=
float
(
param_max_elapsed
)
except
ValueError
:
except
ValueError
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment