Commit 9c6efa69 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

better output in GradientNormController

parent 89b08ffe
Pipeline #26158 passed with stages
in 8 minutes and 4 seconds
......@@ -122,8 +122,9 @@ class GradientNormController(IterationController):
# Are we done?
if self._iteration_limit is not None:
if self._itcount >= self._iteration_limit:
logger.warning(
"Warning:Iteration limit reached. Assuming convergence")
msg = "" if self._name is None else self._name+": "
msg += "Iteration limit reached. Assuming convergence"
logger.warning(msg)
return self.CONVERGED
if self._ccount >= self._convergence_level:
return self.CONVERGED
......
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