Skip to content
Snippets Groups Projects
Commit 9708ec1f authored by EXT Jean-Matthieu Etancelin's avatar EXT Jean-Matthieu Etancelin
Browse files

Fix to be skipped function of operators

parent 29962899
No related branches found
No related tags found
1 merge request!16MPI operators
......@@ -398,7 +398,7 @@ def op_apply(f):
kwds['dbg']('post '+msg, nostack=True)
return ret
else:
if not op.to_be_skipped():
if not op.to_be_skipped(*args, **kwds):
return f(*args, **kwds)
else:
dprint("Skip {}".format(op.name))
......
......@@ -117,6 +117,8 @@ class IterativeMethod(Problem):
@debug
@ready
def apply(self, simulation, report_freq=0, dbg=None, **kwds):
if self.to_be_skipped(simulation, **kwds):
return
vprint('=== Entering iterative method...')
self.stop_criteria.value = self._stop_criteria_reset
......
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