No fi outside main.
@wortmann: With this commit, or rather because of the one before it, the PlotOnlyMT test succeeds again. It failed when checking values, that were taken after a successful iteration or even a second one. Values resulting from the starting density were ok before too. Now, the iterations do not even happen anymore, which is way more sensible, and the values stay the same for all three plot test runs (though some are set to 0, which we want).
That means: the only test left failing is the relax one. I suppose that is because a) it runs multiple iterations and b) it is fully fully noco. The only other FFN test meeting the requirement of grepping a value after the diagonalization is my SF test Fe_bcc_SF_LDA, grepping for the magnetic moment after one iteration. That test is not terribly sensitive and I might rethink it.
So the problem that lead to test failures after the openacc merge can be pinpointed to the hsmt part for the FFN case I guess. I hope this helps you find what exactly went wrong. :)
@hilgers: The plot tests are now way quicker. PlotOnlyMT went from 54s to 17s. Great success!