Fixes to how external potentials are finalized
Description
Fix a memory leak and make sure we don't initialize external potentials twice in legacy mode.
News snippet
Fix a memory leak and make sure we don't initialize external potentials twice in legacy mode.
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.