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
a0cc4f9e
Commit
a0cc4f9e
authored
Jul 11, 2017
by
Martin Reinecke
Browse files
suggested fix for stopping criterion
parent
89e27a11
Pipeline
#14735
passed with stage
in 8 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/minimization/descent_minimizer.py
View file @
a0cc4f9e
...
...
@@ -165,7 +165,7 @@ class DescentMinimizer(Loggable, object):
energy
=
new_energy
# check convergence
delta
=
abs
(
gradient
).
max
()
*
(
step_length
/
gradient_norm
)
delta
=
abs
(
gradient
).
max
()
*
(
step_length
/
np
.
sqrt
(
gradient_norm
)
)
self
.
logger
.
debug
(
"Iteration:%08u step_length=%3.1E "
"delta=%3.1E energy=%3.1E"
%
(
iteration_number
,
step_length
,
delta
,
...
...
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