Skip to content
Snippets Groups Projects
Commit 30af4d9c authored by Philipp Arras's avatar Philipp Arras
Browse files

Nicer IC output

parent 4ed7d826
No related branches found
No related tags found
1 merge request!215Energy tests
Pipeline #
...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment