Faster BC for particles
We can do a faster way of periodic BCs for particles which does not require any if-statements. This will improve performance.
x = x - xext * int((x - xc) * 2.0 / xext)
xext
extent, xc = 0.5 * (xmin + xmax)
is the center of the domain.
Edited by frey_m