Better fixes #79

I improved the fix to correctly updated the grids far from Gaussian centers.
Fixed regtest

I also changed it to test potential far away from the border