Changed coordinate computation for the analytical solution s.t. now also working when box has negative origin.