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): ...@@ -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"
return self.CONVERGED return self.CONVERGED
if self._ccount >= self._convergence_level: if self._ccount >= self._convergence_level:
return self.CONVERGED return self.CONVERGED
Supports Markdown
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