Skip to content

Remove explicit initialization in many functions

Sebastian Ohlmann requested to merge fix_explicit_initialization into main

Description

Explicit initialization in Fortran implies the SAVE attribute, which means that the corresponding variables will keep their value after exiting a subroutine. Especially in multisystem runs, this is unwanted because the same function might be called for two different systems of the same kind; and the function should behave in the same way for both.

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.

Merge request reports