Commit bf4d61ff authored by Philipp Arras's avatar Philipp Arras
Browse files

Cosmetics

parent d0817a63
......@@ -182,10 +182,8 @@ class NewtonCG(DescentMinimizer):
p = None
if self._napprox > 1:
unscmet, sc = energy.unscaled_metric()
approx = makeOp(approximation2endo(unscmet, self._napprox)*sc)
p = approx.inverse
e, conv = ConjugateGradient(ic, nreset=self._nreset)(e,
preconditioner=p)
p = makeOp(approximation2endo(unscmet, self._napprox)*sc).inverse
e, conv = ConjugateGradient(ic, nreset=self._nreset)(e, p)
return -e.position
......
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