Skip to content

Commit

Permalink
bugfix for paper release
Browse files Browse the repository at this point in the history
doit is only relevant if there is a reference file (as for Gray Scott)
  • Loading branch information
pancetta committed May 5, 2016
1 parent 92dafdf commit c62b344
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pySDC/Plugins/fault_tolerance.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def hard_fault_injection(S):
if doit:
hard_stats.append((S.status.step,S.status.iter,S.status.time))
else:
doit = np.any(np.all([S.status.step,S.status.iter,S.status.time]==refdata,axis=1))
if refdata is not None:
doit = np.any(np.all([S.status.step,S.status.iter,S.status.time]==refdata,axis=1))
else:
doit = False

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

Expand Down

0 comments on commit c62b344

Please sign in to comment.