Skip to content
Snippets Groups Projects
Commit fec2d782 authored by Jean-Baptiste Keck's avatar Jean-Baptiste Keck
Browse files

fix ioparams should_dump when frequency > 0

parent 767cd037
No related branches found
No related tags found
1 merge request!16MPI operators
Pipeline #24962 failed
...@@ -266,7 +266,7 @@ class IOParams(namedtuple("IOParams", ['filename', 'filepath', ...@@ -266,7 +266,7 @@ class IOParams(namedtuple("IOParams", ['filename', 'filepath',
if (frequency >= 0) and simulation.is_time_of_interest: if (frequency >= 0) and simulation.is_time_of_interest:
dump |= (t in self.dump_times) dump |= (t in self.dump_times)
if (frequency > 0): if (frequency > 0):
dump |= ((simulaton.current_iteration % frequency) == 0) dump |= ((simulation.current_iteration % frequency) == 0)
return dump return dump
def clone(self, **kwds): def clone(self, **kwds):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment