Commit f7413276 authored by Stephan Rave's avatar Stephan Rave

[model] also pass kwargs to error_estimator

parent 8eb16167
......@@ -66,12 +66,12 @@ class Model(CacheableObject, ParametricObject):
def _compute_solution_error_estimate(self, solution, mu=None, **kwargs):
if self.error_estimator is None:
raise ValueError('Model has no error estimator')
return self.error_estimator.estimate_error(solution, mu, self)
return self.error_estimator.estimate_error(solution, mu, self, **kwargs)
def _compute_output_error_estimate(self, solution, mu=None, **kwargs):
if self.error_estimator is None:
raise ValueError('Model has no error estimator')
return self.error_estimator.estimate_output_error(solution, mu, self)
return self.error_estimator.estimate_output_error(solution, mu, self, **kwargs)
_compute_allowed_kwargs = frozenset()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment