Application of the Ewald method to cosmological N-body simulations | Synapse