Commit 794fab2a authored by Martin Reinecke's avatar Martin Reinecke
Browse files

try to fix issue #67

parent bd249a5f
......@@ -181,7 +181,7 @@ class ScipyCG(Minimizer):
prec_op = scipy_linop(shape=(op.domain.size, op.target.size),
matvec=mymatvec(preconditioner))
res, stat = cg(sci_op, b, x0=sx, tol=self._tol, M=prec_op,
maxiter=self._maxiter)
maxiter=self._maxiter, atol='legacy')
stat = (IterationController.CONVERGED if stat >= 0 else
IterationController.ERROR)
return energy.at(_toField(res, energy.position)), stat
......@@ -32,5 +32,4 @@ def _custom_name_func(testcase_func, param_num, param):
def expand(*args, **kwargs):
return parameterized.expand(*args, testcase_func_name=_custom_name_func,
**kwargs)
return parameterized.expand(*args, func=_custom_name_func, **kwargs)
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