Reorganize output routines
Description
Group routines that need a cube and those that do not. Introduce an output routine for a global cube function. Do the mesh_to_cube only once from inside the local output routine. This saves operations in several aspects:
- the mesh to cube mapping is only created and executed once in case there are several output formats that need a cube
- the mesh to cube mapping is called with the distributed mesh function instead of the global one
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.