diff --git a/pytools/convergence.py b/pytools/convergence.py index d9616c3ce0c8bf31662627a1a6651abe8f97437b..61d21824fe6a1b74c6df90a81186260b1246eb27 100644 --- a/pytools/convergence.py +++ b/pytools/convergence.py @@ -47,6 +47,9 @@ class EOCRecorder(object): def order_estimate(self): return self.estimate_order_of_convergence()[0, 1] + def max_error(self): + return max(err for absc, err in self.history) + def pretty_print(self, abscissa_label="h", error_label="Error", gliding_mean=2): from pytools import Table