# Total charge error in .itp files

**URL:** https://gromacs.bioexcel.eu/t/total-charge-error-in-itp-files/486
**Category:** User discussions
**Created:** [July 14, 2020, 2:56am UTC](https://gromacs.bioexcel.eu/t/total-charge-error-in-itp-files/486 "2020-07-14T02:56:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Le.obs](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Le.obs](https://gromacs.bioexcel.eu/u/Le.obs)
#### Post date: [July 14, 2020, 2:56am UTC](https://gromacs.bioexcel.eu/t/total-charge-error-in-itp-files/486/1 "2020-07-14T02:56:45Z")

</div>

I’m trying to run MD on my system with hexane but I keep receiving this error. I have noticed that my .itp files do have this net charge on my structure (generated through Avogadro then converted into .itp and .gro with [http://zarbi.chem.yale.edu/ligpargen/](http://zarbi.chem.yale.edu/ligpargen/)). Is there any way I can generate an .itp with the right net chat (that should be zero)? Or perhaps some way to teach Gromacs to round this number? The program runs the simulation with this net charge, but once I’m introducing about a thousand molecules it crashes.

“NOTE 2 [file topo.top, line 11]:  
System has non-zero total charge: 0.000100  
Total charge should normally be an integer. See  
[http://www.gromacs.org/Documentation/Floating\_Point\_Arithmetic](http://www.gromacs.org/Documentation/Floating_Point_Arithmetic)  
for discussion on how close it should be to an integer.”

GROMACS version: 2018.1  
GROMACS modification: Yes/No  
Here post your question

---

<div class="post-metadata">

### Author: ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)
#### Post date: [July 14, 2020, 3:23pm UTC](https://gromacs.bioexcel.eu/t/total-charge-error-in-itp-files/486/2 "2020-07-14T15:23:10Z")

</div>

Someone else reported almost an identical problem just a few days ago (please search the forum), you should verify if the topology itself has a net charge by summing the partial charges yourself. If it does, you will need to correct it. The LigParGen server has produced such output before. Any imbalance should be obvious in a molecule as simple as hexane, which is symmetric and should actually already exist within OPLS.
