The Ewald long-range for 2D was leading to NaN for energy or forces for thick slabs.
Description
The Ewald long-range for 2D was leading to NaN for energy or forces for thick slabs.
News snippet
The Ewald long-range for 2D was leading to NaN for energy or forces for thick slabs.
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.