Rdf between Centre of mass of a molecule and a cation

GROMACS version:
GROMACS modification: Yes/No
Here post your question
I am facing problem during the calculation of rdf between a centre of mass of a molecule and a cation.
I tried the -selrpos -seltype options but using this the rdf I am getting is wrong … there is an extra peak coming… but there is no problem when I am calculating the rdf between the centre of mass of two molecule using selrpos and seltype options. And also there is no problem during the calculation of rdf between two atoms in normal way.
Please help me out why only this problem is arrising during the calculation of rdf of centre of mass of a molecule and a cation or atom.

Hi,
can you post the command line that you use? and something more on the system, e.i is the cation composed of one atom or more atoms?
Thank you
Alessandra

Command line
gmx rdf -f .xtc -s .tpr -selrpos mol_com -n index.ndx -ref 0 -sel 1 -o rdf.xvg
Cation is monovalent cation like Li, Na etc.

your problem fixed?

yes
gmx_mpi rdf -f md.xtc -s md.tpr -ref ‘mol_com of group 2’ -sel ‘group 3’ -o rdf.xvg
this is the command