in reply to Re^2: calculate distance between atoms and a target atomin thread calculate distance between atoms and a target atom