# Reading tpx file version 119 with version 103 program

**URL:** <https://gromacs.bioexcel.eu/t/reading-tpx-file-version-119-with-version-103-program/703>\
**Category:** User discussions\
**Tags:** mdrun\
**Created:** [August 25, 2020, 7:34am UTC](https://gromacs.bioexcel.eu/t/reading-tpx-file-version-119-with-version-103-program/703 "2020-08-25T07:34:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liujy](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@Liujy](https://gromacs.bioexcel.eu/u/Liujy)\
**Post date:** [August 25, 2020, 7:34am UTC](https://gromacs.bioexcel.eu/t/reading-tpx-file-version-119-with-version-103-program/703/1 "2020-08-25T07:34:35Z")

</div>

GROMACS version: 2020.2

I am following the “KALP-15 in DPPC” tutorial on my computer with GROMACS 2020.2, and I try to run the NPT equilibration in parallel on a cluster of my department, whose GROMACS is version 5.1.2. I submit my job and the output file reads:  
Fatal error: reading tpx file (npt.tpr) version 119 with version 103 program

Is this because the tpr file produced by a latter version of GMX cannot be read by an older GMX? If so, how to deal with the problem?

---

<div class="post-metadata">

**Author:** ![pjohansson](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/pjohansson/32/316_2.png) [@pjohansson](https://gromacs.bioexcel.eu/u/pjohansson)\
**Post date:** [August 25, 2020, 8:19am UTC](https://gromacs.bioexcel.eu/t/reading-tpx-file-version-119-with-version-103-program/703/2 "2020-08-25T08:19:26Z")

</div>

Hello!

You are precisely correct, the newer file contains some options that the old program does not know about.

Some solutions, in order of difficulty and time spent:

1. Transfer the input files (.gro/.pdb, .mdp, .top, and anything else needed) to the cluster and run `gmx grompp` on it
2. Download Gromacs 5.1.2 and compile it on your local machine (you can compile it without installing it, after running `make` the `gmx` executable is in the `bin` folder)
3. Compile Gromacs 2020 by yourself on the cluster and use that
4. Convince your system administrator to install Gromacs 2020 on the cluster

Regards,  
Petter

---

<div class="post-metadata">

**Author:** ![Liujy](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@Liujy](https://gromacs.bioexcel.eu/u/Liujy)\
**Post date:** [August 25, 2020, 9:39am UTC](https://gromacs.bioexcel.eu/t/reading-tpx-file-version-119-with-version-103-program/703/3 "2020-08-25T09:39:43Z")

</div>

I see. Thank you very much! :D

---

<div class="post-metadata">

**Author:** ![mc3010](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@mc3010](https://gromacs.bioexcel.eu/u/mc3010)\
**Post date:** [June 3, 2022, 5:14am UTC](https://gromacs.bioexcel.eu/t/reading-tpx-file-version-119-with-version-103-program/703/4 "2022-06-03T05:14:15Z")

</div>

Hello,

It is possible to use both version on the same computer?

Regards,  
Maria

---

<div class="post-metadata">

**Author:** ![pjohansson](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/pjohansson/32/316_2.png) [@pjohansson](https://gromacs.bioexcel.eu/u/pjohansson)\
**Post date:** [June 3, 2022, 8:51am UTC](https://gromacs.bioexcel.eu/t/reading-tpx-file-version-119-with-version-103-program/703/5 "2022-06-03T08:51:30Z")

</div>

Yes, use the `-DCMAKE_INSTALL_PREFIX=[directory]` option when running `cmake` and source the `GMXRC` file from that directory (in the `bin` folder of that destination).

See these two pages from the installation guide:  
[Where to install Gromacs](https://manual.gromacs.org/current/install-guide/index.html#where-to-install-gromacs)  
[Getting access to Gromacs after installation](https://manual.gromacs.org/current/install-guide/index.html#getting-access-to-gromacs-after-installation)

Petter

---

<div class="post-metadata">

**Author:** ![kimiashahbazi](https://avatars.discourse-cdn.com/v4/letter/k/53a042/32.png) [@kimiashahbazi](https://gromacs.bioexcel.eu/u/kimiashahbazi)\
**Post date:** [October 3, 2022, 5:10pm UTC](https://gromacs.bioexcel.eu/t/reading-tpx-file-version-119-with-version-103-program/703/6 "2022-10-03T17:10:07Z")

</div>

hi  
i have 5.1.2 version of gromacs but i need 2021.6 too  
I live in Iran and I dont have enough access to internet for searching these days.  
I will be thankful if you help me step by step : how to install new version and also have the last version too

many many thanks

---

<div class="post-metadata">

**Author:** ![PetriDish](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@PetriDish](https://gromacs.bioexcel.eu/u/PetriDish)\
**Post date:** [March 15, 2024, 9:22am UTC](https://gromacs.bioexcel.eu/t/reading-tpx-file-version-119-with-version-103-program/703/7 "2024-03-15T09:22:44Z")

</div>

Hi @pjohansson ,

I tried using your suggestion, but it seems that executing gmx grompp also resulted in the same error. Here is my prompt:

gmx grompp -f md.mdp -c md\_0\_1.tpr -p topol.top -o md\_0\_1\_gmx515.tpr

Where I want to convert tpr from gromacs version 2023.4 to gromacs 5.1.5 which is compatible with g\_mmpbsa. It reported this error:

Fatal error:  
reading tpx file (md\_0\_1.tpr) version 129 with version 103 program  
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)

Am I doing the conversion correctly?

---

<div class="post-metadata">

**Author:** ![Gromacs\_user](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@Gromacs\_user](https://gromacs.bioexcel.eu/u/Gromacs_user)\
**Post date:** [April 8, 2024, 5:59pm UTC](https://gromacs.bioexcel.eu/t/reading-tpx-file-version-119-with-version-103-program/703/8 "2024-04-08T17:59:20Z")

</div>

Hi @PetriDish

Have you found a solution to this problem? I also experienced the same problem. I’ve tried using grompp to generate md tpr v 5.1.2, but it says it can’t read my 2024 npt checkpoints

Fatal error:  
Attempting to read a checkpoint file of version 23 with code of version 16

---

<div class="post-metadata">

**Author:** ![obZehn](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/obzehn/32/2629_2.png) [@obZehn](https://gromacs.bioexcel.eu/u/obZehn)\
**Post date:** [April 9, 2024, 8:10am UTC](https://gromacs.bioexcel.eu/t/reading-tpx-file-version-119-with-version-103-program/703/9 "2024-04-09T08:10:41Z")

</div>

That of @PetriDish is the same original problem as the thread was originally about. You can’t use an old gromacs version to work on a .tpr compiled with a more recent one. Trying to convert it using an old gromacs IS using an old gromacs version to modify a .tpr. It wont work.

The solutions are those reported by @pjohansson. Since you are already have the old version, take the original input files used to compile the .tpr with the newer gromacs (structure restraints index etc), you can find the command you used to compile the old .tpr in the mdout.mdp file that was generated by the grompp passage back in the day. Then rerun gmx grompp with the same files BUT with the older gromacs version, this will generate a new .tpr that is compatible with the gromacs you are using, that is, the old one. And then use that as input for the old version!
