I'm running a halo finder using fof method on some arbitrary dataset which contains positions of all particles. The halo finder shows the number of groups it has found. but when saving halo data an error came up. I have debugged the code and see positions of all halos is set to zero and virial mass and radius is set to -1. I wonder lack of what thing and particle fields leads to this?
Thank you. Sina