Skip to content
GitLab
Menu
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
9c6efa69
Commit
9c6efa69
authored
Mar 15, 2018
by
Martin Reinecke
Browse files
better output in GradientNormController
parent
89b08ffe
Pipeline
#26158
passed with stages
in 8 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty4/minimization/gradient_norm_controller.py
View file @
9c6efa69
...
@@ -122,8 +122,9 @@ class GradientNormController(IterationController):
...
@@ -122,8 +122,9 @@ class GradientNormController(IterationController):
# Are we done?
# Are we done?
if
self
.
_iteration_limit
is
not
None
:
if
self
.
_iteration_limit
is
not
None
:
if
self
.
_itcount
>=
self
.
_iteration_limit
:
if
self
.
_itcount
>=
self
.
_iteration_limit
:
logger
.
warning
(
msg
=
""
if
self
.
_name
is
None
else
self
.
_name
+
": "
"Warning:Iteration limit reached. Assuming convergence"
)
msg
+=
"Iteration limit reached. Assuming convergence"
logger
.
warning
(
msg
)
return
self
.
CONVERGED
return
self
.
CONVERGED
if
self
.
_ccount
>=
self
.
_convergence_level
:
if
self
.
_ccount
>=
self
.
_convergence_level
:
return
self
.
CONVERGED
return
self
.
CONVERGED
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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