Fix output last TD iteration
Description
Fix the condition to call output_all for TD runs, as we only want to perform output at a given frequency, and not for the last iteration of the calculation.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.