Add possibility to log energies
I have implemented a method to log energies inside a IterationController such that they can be analyzed afterwards. @mtr how do you like this implementation? Do you think we could/should make this part of nifty? Or do you have other ideas how to approach the problem?
(Since this is part of an unpublished project, this link is only visible for ift group members. Sorry!)