# Error while using trjconv

**URL:** <https://gromacs.bioexcel.eu/t/error-while-using-trjconv/9833>\
**Category:** User discussions\
**Created:** [August 7, 2024, 10:17am UTC](https://gromacs.bioexcel.eu/t/error-while-using-trjconv/9833 "2024-08-07T10:17:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Munazzah1](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@Munazzah1](https://gromacs.bioexcel.eu/u/Munazzah1)\
**Post date:** [August 7, 2024, 10:17am UTC](https://gromacs.bioexcel.eu/t/error-while-using-trjconv/9833/1 "2024-08-07T10:17:20Z")

</div>

GROMACS version: 2022.5-plumed\_2.9.0  
GROMACS modification: Yes/No  
Hello developers,  
I am using REST2 method in gromacs 2022.5 patched with plumed-2.9.0.  
I am simulating IDP with 57 residues. When i strip water from trajectory using -pbc flag with command  
gmx trjconv -f production.xtc -n index.ndx -o trajout.xtc -pbc whole -center -s production.tpr  
It shows me following error:  
Program: gmx trjconv, version 2022.5-plumed\_2.9.0  
Source file: src/gromacs/pbcutil/mshift.cpp (line 823)

Fatal error:  
There are inconsistent shifts over periodic boundaries in a molecule type  
consisting of 790 atoms. The longest distance involved in such interactions is  
9.511 nm which is above half the box length. This molecule type consists of  
muliple parts, e.g. monomers, that are connected by interactions that are not  
chemical bonds, e.g. restraints. Such systems can not be treated. The only  
solution is increasing the box size.

The simulatin box were set up with 3 nm distance between protein atoms and edge of the box. I am not understanding what is longest distance interactions involved? As i use the cutoff 0.9 nm for long range interaction. Please guide me .

Thanks,  
Munazzah Fatima Ansari
