# System has non-zero total charge

**URL:** https://gromacs.bioexcel.eu/t/system-has-non-zero-total-charge/1287
**Category:** User discussions
**Created:** [December 18, 2020, 8:57am UTC](https://gromacs.bioexcel.eu/t/system-has-non-zero-total-charge/1287 "2020-12-18T08:57:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Luca\_Maggi](https://avatars.discourse-cdn.com/v4/letter/l/53a042/32.png) [@Luca\_Maggi](https://gromacs.bioexcel.eu/u/Luca_Maggi)
#### Post date: [December 18, 2020, 8:57am UTC](https://gromacs.bioexcel.eu/t/system-has-non-zero-total-charge/1287/1 "2020-12-18T08:57:39Z")

</div>

GROMACS version:  
GROMACS modification: Yes/No  
Dear Gmx Users,  
I am dealing with a 380k atoms system whose net charge is not “strictly” zero.  
During the grompp generation, indeed, gromacs detects a net charge equal to -0.018.  
I do believe this is a numerical problem, do you think it is correct to use the option maxwarn -1 in order to ignore the warning and go ahed running the simulation?

Thanks in advance

Luca

---

<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: [December 18, 2020, 10:53am UTC](https://gromacs.bioexcel.eu/t/system-has-non-zero-total-charge/1287/2 "2020-12-18T10:53:33Z")

</div>

Hi,  
It looks a little too large to be a rounding error. You can check the topology by looking at the right-hand comment column of the atom listing (in the topology), which lists the cumulative charge. This should be an integer after every residue (and/or charge group where applicable). This will assist in finding the residue where things start departing from integer values. Also check the terminal capping groups that have been used.

Best regards  
Alessandra
