# How to add ions

**URL:** <https://ask.bioexcel.eu/t/how-to-add-ions/2412>\
**Category:** Uncategorized\
**Created:** [August 27, 2020, 9:03am UTC](https://ask.bioexcel.eu/t/how-to-add-ions/2412 "2020-08-27T09:03:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hien\_Lai](https://avatars.discourse-cdn.com/v4/letter/h/ebca7d/32.png) [@Hien\_Lai](https://ask.bioexcel.eu/u/Hien_Lai)\
**Post date:** [August 27, 2020, 9:03am UTC](https://ask.bioexcel.eu/t/how-to-add-ions/2412/1 "2020-08-27T09:03:26Z")

</div>

Can you help me this error:  
input file:  
"HETATM 44 Mg2 MG2 B 2 4.841 5.816 3.128 1.00 0.00 MG "  
and its notify error:  
“Error in PDB file.  
Issue when parsing the PDB file at line **44**.  
Your PDB contains an elemental ion **MG** with inconsistent charge”  
Thank you!

---

<div class="post-metadata">

**Author:** ![amjjbonvin](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/amjjbonvin/32/23_2.png) [@amjjbonvin](https://ask.bioexcel.eu/u/amjjbonvin)\
**Post date:** [August 27, 2020, 2:15pm UTC](https://ask.bioexcel.eu/t/how-to-add-ions/2412/2 "2020-08-27T14:15:03Z")

</div>

See: [https://bianca.science.uu.nl/haddock2.4/library](https://bianca.science.uu.nl/haddock2.4/library)

And note that the forum is searchable and the answer has already been given multiple times 🙂
