# Cannot find position restraint file restraint.gro in CHARMM-GUI input files fro GROMACS

**URL:** <https://gromacs.bioexcel.eu/t/cannot-find-position-restraint-file-restraint-gro-in-charmm-gui-input-files-fro-gromacs/11107>\
**Category:** User discussions\
**Created:** [January 22, 2025, 10:21am UTC](https://gromacs.bioexcel.eu/t/cannot-find-position-restraint-file-restraint-gro-in-charmm-gui-input-files-fro-gromacs/11107 "2025-01-22T10:21:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rick80](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@Rick80](https://gromacs.bioexcel.eu/u/Rick80)\
**Post date:** [January 22, 2025, 10:21am UTC](https://gromacs.bioexcel.eu/t/cannot-find-position-restraint-file-restraint-gro-in-charmm-gui-input-files-fro-gromacs/11107/1 "2025-01-22T10:21:22Z")

</div>

GROMACS version: 2020.1-Ubuntu-2020.1-1  
GROMACS modification: Yes/No

Hi everyone! I’m a GROMACS newcomer. I actually testing the possibility of performing MD simulations on a protein at various pH levels using the CHARMM-GUI Solvent Builder, in order to generate the input files.  
I am encountering the following error during the first step of energy minimization.

_\>gmx grompp -f energyminim.mdp -c ppo.gro -p topol.top -o em.tpr_

_Fatal error:_  
_Cannot find position restraint file restraint.gro (option -r)._  
_From GROMACS-2018, you need to specify the position restraint coordinate files_  
_explicitly to avoid mistakes, although you can still use the same file as you_  
_specify for the -c option._

For better clarity, here attached the specific files.

[topol.top](https://gromacs.bioexcel.eu/uploads/short-url/2Wxa3gkKDaStQHVzx8rUHERrfjl.top) (456 Bytes)  
[energyminim.mdp](https://gromacs.bioexcel.eu/uploads/short-url/95VhYDGn797ai6ynUuXIWzye77x.mdp) (525 Bytes)

Thanks in advance for any suggestion!

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [January 22, 2025, 10:30am UTC](https://gromacs.bioexcel.eu/t/cannot-find-position-restraint-file-restraint-gro-in-charmm-gui-input-files-fro-gromacs/11107/2 "2025-01-22T10:30:03Z")

</div>

It should work (get past this error) by adding the `-r` option to `gmx grompp`: `gmx grompp -f energyminim.mdp -c ppo.gro -r ppo.gro -p topol.top -o em.tpr`. This means that you explicitly use `ppo.gro` as the target for restraints. This is almost always what you want to do during energy minimization. When you then proceed with equilibrations you will have to decide if you want to restrain to the original coordinates (`ppo.gro`) or to the output from the step before. Both can be valid in different situations.
