# Error message

**URL:** <https://gromacs.bioexcel.eu/t/error-message/5831>\
**Category:** User discussions\
**Tags:** pdb2gmx, forcefield, mdp-parameters, grompp\
**Created:** [February 18, 2023, 1:10am UTC](https://gromacs.bioexcel.eu/t/error-message/5831 "2023-02-18T01:10:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anahhas](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@anahhas](https://gromacs.bioexcel.eu/u/anahhas)\
**Post date:** [February 18, 2023, 1:10am UTC](https://gromacs.bioexcel.eu/t/error-message/5831/1 "2023-02-18T01:10:49Z")

</div>

GROMACS version:2021  
GROMACS modification: Yes/No  
Here post your question I have an error message and I am trying to solve it but I couldn’t. The message is the receptor\_ligand\_solv.gro file number doesn’t match with my topol.top file. The topol.top file has more number. Could you please tell me how I can fixed this step to reach to ion.tpr file.  
Thanks

---

<div class="post-metadata">

**Author:** ![alevilla](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/alevilla/32/439_2.png) [@alevilla](https://gromacs.bioexcel.eu/u/alevilla)\
**Post date:** [February 21, 2023, 9:29am UTC](https://gromacs.bioexcel.eu/t/error-message/5831/2 "2023-02-21T09:29:02Z")

</div>

Hi,  
can you post more information on the the error you got?  
I guess you get the error while you run gmx grompp and the error is about the number of atoms in the gro file does not match the number of atoms in the top file. If it is the case you can check that system defined in the topology file match the one in the gro file, by looking  
if the list of the molecules in your system (at the end of the topology file) match the number of the atoms in the gro?

\Alessandra

---

<div class="post-metadata">

**Author:** ![anahhas](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@anahhas](https://gromacs.bioexcel.eu/u/anahhas)\
**Post date:** [February 26, 2023, 11:56pm UTC](https://gromacs.bioexcel.eu/t/error-message/5831/3 "2023-02-26T23:56:34Z")

</div>

Hi Dr. Alevilla,  
I still can’t figure out the problem. I will attach the error message and the topol.top f and ligand.itp file. Hopefully you can figure it out.  
The command is gmx grompp -f ions.mdp -c protein\_ligand\_solv.gro -p topol.top -o ions.tpr  
and the error message is WARNING 17 [file topol.top, line 42]:  
Atomtype H4 was defined previously (e.g. in the forcefield files), and  
has now been defined again. This could happen e.g. if you would use a  
self-contained molecule .itp file that duplicates or replaces the  
contents of the standard force-field files. You should check the contents  
of your files and remove such repetition. If you know you should override  
the previous definition, then you could choose to suppress this warning  
with -maxwarn.

[topol.top](https://gromacs.bioexcel.eu/uploads/short-url/48c06uu3LGIobv3mSTdjJMARtbo.top) (833.6 KB)

 ![itp](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/0/05ceb4f52ae5b4bfa02e6150e3d0d9005651f38b.png)
