Function crpropa::periodicClamp

Function Documentation

void crpropa::periodicClamp(double x, int n, int &lo, int &hi)

Lower and upper neighbor in a periodically continued unit grid