Reduce temp array creation warnings
Description
This MR attempts to eliminate all the runtime warnings about temporary array creation for the serial debug builder. The remaining mpi related warning will be addressed in !2228 (merged).
News snippet
This MR attempts to eliminate most of the runtime warnings about temporary array creation.
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.
Edited by Martin Lueders