# Another Problem with Distances Between Pull Groups

**URL:** <https://gromacs.bioexcel.eu/t/another-problem-with-distances-between-pull-groups/6172>\
**Category:** User discussions\
**Tags:** mdp-parameters, grompp, pull-code\
**Created:** [April 12, 2023, 11:07pm UTC](https://gromacs.bioexcel.eu/t/another-problem-with-distances-between-pull-groups/6172 "2023-04-12T23:07:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kzinga](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@kzinga](https://gromacs.bioexcel.eu/u/kzinga)\
**Post date:** [April 12, 2023, 11:07pm UTC](https://gromacs.bioexcel.eu/t/another-problem-with-distances-between-pull-groups/6172/1 "2023-04-12T23:07:41Z")

</div>

GROMACS version: 2021.3  
GROMACS modification: No

Hi all,

I am attempting to tether multiple proteins to a lipid bilayer using the following pull code:

> ; Pull Code  
> pull = yes  
> pull-print-com = yes  
> pull\_ngroups = 32  
> pull-ncoords = 16
> 
> pull-coord1-groups= 1 2  
> pull\_group1\_name = PROA  
> pull\_group2\_name = LIPA  
> pull-coord1-type = umbrella  
> pull-coord1-geometry = distance  
> pull-coord1-dim = Y Y Y  
> pull-coord1-start = no  
> pull-coord1-rate = 0  
> pull-coord1-k= 10000

but getting this following error:

> Fatal error:  
> Distance between pull groups 1 and 2 (8.370350 nm) is larger than 0.49 times  
> the box size (7.643079).

Even though the distance when visualized is ~0.1nm. Neither of the pull groups are located along the periodic boundary, but it seems that gromacs is calculating distances using one of the periodic image instead of the closest. This seems to echo [this older issue](https://gromacs.bioexcel.eu/t/problem-with-distance-between-pull-groups-and-pbc/547), but the suggested solutions are not working in this case.

I appreciate any advice on how to handle this error. I have tried picking other lipids which are further from the protein group, but this is more of a bandaid with no insight on how to choose a minimum distance.

---

<div class="post-metadata">

**Author:** ![hess](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/hess/32/416_2.png) [@hess](https://gromacs.bioexcel.eu/u/hess)\
**Post date:** [April 13, 2023, 11:25am UTC](https://gromacs.bioexcel.eu/t/another-problem-with-distances-between-pull-groups/6172/2 "2023-04-13T11:25:56Z")

</div>

There are several issues in the mdp parameter you show here, but these can’t be correct. You can’t use two groups with the same name. And do you really want to control the distance along all three dimensions?

If you only want the molecules to be close to the membrane along z, you should use a single group for the whole membrane ad use cylinder geometry.

---

<div class="post-metadata">

**Author:** ![kzinga](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@kzinga](https://gromacs.bioexcel.eu/u/kzinga)\
**Post date:** [April 13, 2023, 9:47pm UTC](https://gromacs.bioexcel.eu/t/another-problem-with-distances-between-pull-groups/6172/3 "2023-04-13T21:47:53Z")

</div>

I only posted the relevant portion of the mdp, if that’s the error you’re referring to? There was also a typo in the original post (now corrected).  
I _do_ want to control the distance in all three dimensions and only between a single lipid and a protein, so that the protein and lipid are diffusing together. This is the same method I’ve used for other systems, so I do not understand why the error is occuring now.

---

<div class="post-metadata">

**Author:** ![fatemeh](https://avatars.discourse-cdn.com/v4/letter/f/9de053/32.png) [@fatemeh](https://gromacs.bioexcel.eu/u/fatemeh)\
**Post date:** [July 14, 2024, 10:36am UTC](https://gromacs.bioexcel.eu/t/another-problem-with-distances-between-pull-groups/6172/4 "2024-07-14T10:36:09Z")

</div>

hello, could you solve the problem? i have got the same error
