Fix finite precision bug
Description
Use nearest function also when checking if a point is in the simulation box to make it the same as when creating the grid. Up to now, a DELTA of 1e-12 was used, which can lead to a bug when the spacing differs by less than that.
News snippet
Fix finite precision bug.
Checklist
-
I have checked that my code follows the Octopus coding standards