Bug fix for gcc12
Description
It seems gcc 12 introduced a bug for polymorphic arrays and openmp By adding a pointer, we can circumvent this and still make the code work as before. The proposed solution is the same of this MR: !1719 (merged)
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.