Commit 30af4d9c authored by Philipp Arras's avatar Philipp Arras
Browse files

Nicer IC output

parent 4ed7d826
Pipeline #24179 failed with stage
in 4 minutes and 2 seconds
...@@ -61,8 +61,8 @@ class GradientNormController(IterationController): ...@@ -61,8 +61,8 @@ class GradientNormController(IterationController):
if self._name is not None: if self._name is not None:
msg += self._name+":" msg += self._name+":"
msg += " Iteration #" + str(self._itcount) msg += " Iteration #" + str(self._itcount)
msg += " energy=" + str(energy.value) msg += " energy={:.2E}".format(energy.value)
msg += " gradnorm=" + str(energy.gradient_norm) msg += " gradnorm={:.2E}".format(energy.gradient_norm)
msg += " clvl=" + str(self._ccount) msg += " clvl=" + str(self._ccount)
dobj.mprint(msg) dobj.mprint(msg)
# self.logger.info(msg) # self.logger.info(msg)
......
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