Fix more runtime warnings (temp arrays)
Description
This is the next round in fixing temporary array warnings by adding 'contiguous' and also changing the index order of some arrays.
News snippet
Fix more runtime warnings (temp arrays)
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.