There is an error in the function CartesianCoordinates::weightedCenter().
After summing the coordinates with their respective weights, the results gets divided by
the total mass times the number of particles. This is not correct. It should only be divided by
the total mass.
There is an error in the function CartesianCoordinates::weightedCenter().
After summing the coordinates with their respective weights, the results gets divided by the total mass times the number of particles. This is not correct. It should only be divided by the total mass.