Am 20.01.2012 18:24, schrieb Berk Hess: > g_mindist doesn't by coincidence already do what you want? Well, I need the CoM distance and not the minimum distance. Looking at g_mindist it interestingly has two options, pi and pbc. I would omit the pi option so far, since that requires some more work. Best Martin