# Genion command not adding ions

**URL:** <https://gromacs.bioexcel.eu/t/genion-command-not-adding-ions/5951>\
**Category:** User discussions\
**Created:** [March 10, 2023, 3:44am UTC](https://gromacs.bioexcel.eu/t/genion-command-not-adding-ions/5951 "2023-03-10T03:44:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![afcordoba](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@afcordoba](https://gromacs.bioexcel.eu/u/afcordoba)\
**Post date:** [March 10, 2023, 3:44am UTC](https://gromacs.bioexcel.eu/t/genion-command-not-adding-ions/5951/1 "2023-03-10T03:44:48Z")

</div>

GROMACS version: 5.1.4 (single precision)  
GROMACS modification: Yes  
Hello all,  
I am having a bit of trouble with a simple MD simulation I am trying to set up. In my system I only have two separate residues, called ACEM and MAMM by the CHARMM force field. MAMM is methyl ammonium and so has a positive charge that needs to be neutralized. However when I run  
gmx genion -s ions.tpr -o (output file) -p topol.top -pname SOD -nname CLA  
It doesn’t do anything, saying that there are no ions to add.  
Even stranger to me, when I move on to making the .tpr file for energy minimization, I get a note stating the system is charged with the correct charge of 1. From this it seems that GROMACS seems to have some recognition of the charge, but doesn’t use it or loses this info when adding ions. Any help would be appreciated.

---

<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:** [March 10, 2023, 4:00am UTC](https://gromacs.bioexcel.eu/t/genion-command-not-adding-ions/5951/2 "2023-03-10T04:00:20Z")

</div>

You haven’t told `genion` to do anything. You need to tell it to neutralize the charge with `-neutral` or specify a concentration of ions with `-conc`.

---

<div class="post-metadata">

**Author:** ![afcordoba](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@afcordoba](https://gromacs.bioexcel.eu/u/afcordoba)\
**Post date:** [March 10, 2023, 6:10pm UTC](https://gromacs.bioexcel.eu/t/genion-command-not-adding-ions/5951/3 "2023-03-10T18:10:05Z")

</div>

Thank you very much, glad to know it was something simple.
