Skip to content

Commit c62b344

Browse files
committed
bugfix for paper release
doit is only relevant if there is a reference file (as for Gray Scott)
1 parent 92dafdf commit c62b344

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pySDC/Plugins/fault_tolerance.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ def hard_fault_injection(S):
3535
if doit:
3636
hard_stats.append((S.status.step,S.status.iter,S.status.time))
3737
else:
38-
doit = np.any(np.all([S.status.step,S.status.iter,S.status.time]==refdata,axis=1))
38+
if refdata is not None:
39+
doit = np.any(np.all([S.status.step,S.status.iter,S.status.time]==refdata,axis=1))
40+
else:
41+
doit = False
3942

4043
# print(S.status.step,S.status.iter,hard_step,hard_iter)
4144

0 commit comments

Comments
 (0)