Fix small bug with periodic boundary conditions
This fixes a small bug that can affect simulations with periodic boundary conditions in parallel (the conditions for triggering this bug seem extremely particular).
This fixes a small bug that can affect simulations with periodic boundary conditions in parallel (the conditions for triggering this bug seem extremely particular).