# This top-level .itp file has been removed. Edit your topology to include it from your force field di

**URL:** <https://gromacs.bioexcel.eu/t/this-top-level-itp-file-has-been-removed-edit-your-topology-to-include-it-from-your-force-field-di/7970>\
**Category:** User discussions\
**Tags:** forcefield\
**Created:** [January 3, 2024, 7:54pm UTC](https://gromacs.bioexcel.eu/t/this-top-level-itp-file-has-been-removed-edit-your-topology-to-include-it-from-your-force-field-di/7970 "2024-01-03T19:54:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnla](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@Johnla](https://gromacs.bioexcel.eu/u/Johnla)\
**Post date:** [January 3, 2024, 7:54pm UTC](https://gromacs.bioexcel.eu/t/this-top-level-itp-file-has-been-removed-edit-your-topology-to-include-it-from-your-force-field-di/7970/1 "2024-01-03T19:54:05Z")

</div>

GROMACS version: 2021.6  
GROMACS modification: No  
Here post your question:  
_I was following Prof. Groot’s tutorial on non-equilibrium free energy calculation at https://www3.mpibpc.mpg.de/groups/de\_groot/compbio2/p10/index\_original.html_  
_and tried to run with GROMACS 2021.6. I kept having the ‘Fatal error: Topology include file “ffgmx.itp” not found’ until_  
_found an older version of gromacs and downloaded some of the old files required, including ffgmx.itp, ff\_dump.itp, ffgmxbon.itp, ffgmxnb.itp, [GROMACS/share/top at master · aar2163/GROMACS · GitHub](https://github.com/aar2163/GROMACS/tree/master/share/top)_  
_I then copied these files to the /usr/local/gromacs/share/gromacs/top folder, and the error messages concerning these .itp files disappeared._

_However, I am now having new error messages:_  
**Fatal error:**

**Syntax error - File spc.itp, line 1**

**Last line read:**

**'#error This top-level .itp file has been removed. Edit your topology to**

**include it from your force field directory instead, e.g. “oplsaa.ff/spc.itp”’**

**For more information and tips for troubleshooting, please check the GROMACS**

**website at [Common Errors — GROMACS webpage https://www.gromacs.org documentation](http://www.gromacs.org/Documentation/Errors)**

_so what does this mean??_  
_where is the force field directory?_

_Here is the topology file(topol.top)'s content:_

; Include forcefield parameters  
#include “ffgmx.itp”

[moleculetype]  
; NAme nrexcl  
NA 1

[atoms]  
; nr type resnr residue atom cgnr charge mass typeB chargeB massB  
1 NA 1 NA NA 1 0 22.98980 NA 1 22.98980

; Include water topology  
#include “spc.itp”

[system]  
; NAme  
NA+ in water

[molecules]  
; Compound #mols  
SOL 431  
NA 1  
topol.top (END)

_Here is the initial log:_  
GROMACS: gmx grompp, version 2021.6

Executable: /usr/local/gromacs/bin/gmx

Data prefix: /usr/local/gromacs

Working dir: /Users/jiangxu/Documents/gromacs\_tutorial/MD\_tutorial\_Groot/non\_equilibrium\_free\_energy\_calculation/practicum\_crooks/fast\_FWD

Command line:

gmx grompp -f forward.mdp -c fwd\_snapshot.pdb -o fwb\_run.tpr -p topol.top

Ignoring obsolete mdp entry ‘cpp’

Ignoring obsolete mdp entry ‘domain-decomposition’

Ignoring obsolete mdp entry ‘andersen\_seed’

Ignoring obsolete mdp entry ‘dihre’

Ignoring obsolete mdp entry ‘dihre-fc’

Ignoring obsolete mdp entry ‘dihre-tau’

Ignoring obsolete mdp entry ‘nstdihreout’

Ignoring obsolete mdp entry ‘nstcheckpoint’

Ignoring obsolete mdp entry ‘optimize\_fft’

Ignoring obsolete mdp entry ‘gb\_algorithm’

Ignoring obsolete mdp entry ‘nstgbradii’

Ignoring obsolete mdp entry ‘rgbradii’

Ignoring obsolete mdp entry ‘gb\_saltconc’

Ignoring obsolete mdp entry ‘ns-type’

Replacing old mdp entry ‘unconstrained-start’ by ‘continuation’

Replacing old mdp entry ‘nstxtcout’ by ‘nstxout-compressed’

Replacing old mdp entry ‘xtc-precision’ by ‘compressed-x-precision’

NOTE 1 [file forward.mdp]:

Setting nstcalcenergy (100) equal to nstdhdl (50)

NOTE 2 [file forward.mdp]:

nstcomm \< nstcalcenergy defeats the purpose of nstcalcenergy, setting

nstcomm to nstcalcenergy

NOTE 3 [file forward.mdp]:

The Berendsen thermostat does not generate the correct kinetic energy

distribution. You might want to consider using the V-rescale thermostat.

* * *

Program: gmx grompp, version 2021.6

Source file: src/gromacs/gmxpreprocess/gmxcpp.cpp (line 298)

Fatal error:

Topology include file “ffgmx.itp” not found

For more information and tips for troubleshooting, please check the GROMACS

_Here is the new error message:_

GROMACS: gmx grompp, version 2021.6

Executable: /usr/local/gromacs/bin/gmx

Data prefix: /usr/local/gromacs

Working dir: /Users/jiangxu/Documents/gromacs\_tutorial/MD\_tutorial\_Groot/non\_equilibrium\_free\_energy\_calculation/practicum\_crooks/fast\_FWD

Command line:

gmx grompp -f forward.mdp -c fwd\_snapshot.pdb -o fwd\_run.tpr -p topol.top

Ignoring obsolete mdp entry ‘cpp’

Ignoring obsolete mdp entry ‘domain-decomposition’

Ignoring obsolete mdp entry ‘andersen\_seed’

Ignoring obsolete mdp entry ‘dihre’

Ignoring obsolete mdp entry ‘dihre-fc’

Ignoring obsolete mdp entry ‘dihre-tau’

Ignoring obsolete mdp entry ‘nstdihreout’

Ignoring obsolete mdp entry ‘nstcheckpoint’

Ignoring obsolete mdp entry ‘optimize\_fft’

Ignoring obsolete mdp entry ‘gb\_algorithm’

Ignoring obsolete mdp entry ‘nstgbradii’

Ignoring obsolete mdp entry ‘rgbradii’

Ignoring obsolete mdp entry ‘gb\_saltconc’

Ignoring obsolete mdp entry ‘ns-type’

Replacing old mdp entry ‘unconstrained-start’ by ‘continuation’

Replacing old mdp entry ‘nstxtcout’ by ‘nstxout-compressed’

Replacing old mdp entry ‘xtc-precision’ by ‘compressed-x-precision’

NOTE 1 [file forward.mdp]:

Setting nstcalcenergy (100) equal to nstdhdl (50)

NOTE 2 [file forward.mdp]:

nstcomm \< nstcalcenergy defeats the purpose of nstcalcenergy, setting

nstcomm to nstcalcenergy

NOTE 3 [file forward.mdp]:

The Berendsen thermostat does not generate the correct kinetic energy

distribution. You might want to consider using the V-rescale thermostat.

Generated 1284 of the 1485 non-bonded parameter combinations

* * *

Program: gmx grompp, version 2021.6

Source file: src/gromacs/gmxpreprocess/topio.cpp (line 466)

Fatal error:

Syntax error - File spc.itp, line 1

Last line read:

'#error This top-level .itp file has been removed. Edit your topology to

include it from your force field directory instead, e.g. “oplsaa.ff/spc.itp”’

For more information and tips for troubleshooting, please check the GROMACS

website at [Common Errors — GROMACS webpage https://www.gromacs.org documentation](http://www.gromacs.org/Documentation/Errors)

* * *

---

<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 9, 2024, 8:05am UTC](https://gromacs.bioexcel.eu/t/this-top-level-itp-file-has-been-removed-edit-your-topology-to-include-it-from-your-force-field-di/7970/2 "2024-01-09T08:05:53Z")

</div>

There are (at least) two problems. Both are related to the .itp files included in your topol.top file. Firstly, your ffgmx.itp file is not found. This is not a standard force field file. The pattern to include “ff\*.itp” to load your force field has been disabled since before 2016, but I don’t know exactly when. The ffgmx.itp force field is also obsolete. You should use a more modern force field, either one of the ones included in the GROMACS distribution or an even more updated version.

Regarding the “spc.itp” error. Nowadays, you should include the water models specifically from the force field that you are using. An example would be:

```auto
; Include forcefield parameters
#include “amber99sb-ildn.ff/forcefield.itp”

...

; Include water topology
#include “amber99sb-ildn.ff/spc.itp”

```

You should of course modify the above example to use the force field you want to use.

---

<div class="post-metadata">

**Author:** ![Johnla](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@Johnla](https://gromacs.bioexcel.eu/u/Johnla)\
**Post date:** [January 9, 2024, 5:46pm UTC](https://gromacs.bioexcel.eu/t/this-top-level-itp-file-has-been-removed-edit-your-topology-to-include-it-from-your-force-field-di/7970/3 "2024-01-09T17:46:02Z")

</div>

Thanks a lot.  
I tried to download the files and put it in the folder at **/usr/local/gromacs/share/gromacs/top**  
This solved the files not found problem.  
I then modified the top.topol file as you suggested.  
Problem solved.  
Thank you!!!

---

<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 10, 2024, 7:43am UTC](https://gromacs.bioexcel.eu/t/this-top-level-itp-file-has-been-removed-edit-your-topology-to-include-it-from-your-force-field-di/7970/4 "2024-01-10T07:43:44Z")

</div>

I’m glad to hear it worked. Just as a piece of advice, I would avoid adding new force fields (or modifying existing force fields) in the installed GROMACS location (`/usr/local/gromacs/` in your case). That can cause confusion for other users (if there are others) or for yourself in the future, e.g. after updating GROMACS. I would recommend either placing the force field directory in the same directory as your `topol.top` file - then you do not have to modify anything in the file either, or to put your custom force fields in a separate directory, e.g. `/home/<user_name>/Documents/force_fields/` and then you’d have to modify your `topol.top file to, e.g.:

```auto
; Include forcefield parameters
#include “/home/<user_name>/Documents/force_fields/amber99sb-ildn.ff/forcefield.itp”

...

; Include water topology
#include “/home/<user_name>/Documents/force_fields/amber99sb-ildn.ff/spc.itp”

```

But that is all up to you. Good luck with your simulations.

---

<div class="post-metadata">

**Author:** ![Johnla](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@Johnla](https://gromacs.bioexcel.eu/u/Johnla)\
**Post date:** [January 11, 2024, 3:39am UTC](https://gromacs.bioexcel.eu/t/this-top-level-itp-file-has-been-removed-edit-your-topology-to-include-it-from-your-force-field-di/7970/5 "2024-01-11T03:39:03Z")

</div>

Thanks a lot. Really appreciate the advice!!  
I was wondering what did the “share” folder mean. Now it makes sense.
