Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
bf4d61ff
Commit
bf4d61ff
authored
Jul 29, 2019
by
Philipp Arras
Browse files
Cosmetics
parent
d0817a63
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/minimization/descent_minimizers.py
View file @
bf4d61ff
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment