Got a fatal error after adding ions command

GROMACS version:2020.1
GROMACS modification: Yes/No
Here post your question How can I fix this problem!!! The number of coordinates in coordinate file (complex_solv.gro, 54584) does not match topology (topol.top, 54670)

Hi,
I guess that the error occurs before you have run gmx genion.
You could check which atoms are defined in the gro file and not in the topology. The directive [ molecules ] tell you which molecules (and then atoms) and which order grompp is expect to find the atoms in the gro file.
Are the gro file and topology file newly generated? if not, it may be good to regenerate them, with attention to update the topology file at each step (solvation and add ions)
\Alessandra

1 Like

Yes you are right, I repeated the steps and it worked out!! Thank you so much…
My mistake that, I changed the file name in the directory at some point into ‘complex.gro’, and when focused and repeated the steps, it is solved out…Thank you so much