[gmx-users] problem with position restraints

Ben Tehan ben.tehan at vcp.monash.edu.au
Tue Sep 10 05:17:34 CEST 2002


Hello fellow gromacs users,
	I am having some unexpected problems whilst trying to do initial
dynamics with position restraints. Has anyone seen this problem before?
I have included the first few lines of both my posre.itp and
post_min.gro files  to have a look at.

>grompp -f pr.mdp -c post_min.gro -p 1a1v.top -o pr.tpr

Warning: as of GMX v 2.0 unit of compressibility is truly 1/bar
checking input for internal consistency...
calling /lib/cpp...
processing topology...
Generated 135 of the 1081 non-bonded parameter combinations
Cleaning up temporary file gromppdOxKKF
Fatal error: [ file "posre.itp", line 9 ]:
             Atom index (4) in position_restraints out of bounds (1-1)


>>posre.itp
; In this topology include file, you will find position restraint
; entries for all the heavy atoms in your original pdb file.
; This means that all the protons which were added by pdb2gmx are
; not restrained.

[ position_restraints ]
; atom  type      fx      fy      fz
     1     1  1000  1000  1000
     4     1  1000  1000  1000
     5     1  1000  1000  1000
etc...

>>post_min.gro
Hepatitis 
53648
    1PRO      N    1   4.430   5.708   1.998
    1PRO     H1    2   4.468   5.630   2.049
    1PRO     H2    3   4.449   5.694   1.900
    1PRO     CA    4   4.286   5.719   2.026
    1PRO     CB    5   4.266   5.854   2.095
    1PRO     CG    6   4.404   5.885   2.150
    1PRO     CD    7   4.499   5.829   2.045
    1PRO      C    8   4.204   5.725   1.896
etc...


As you can also probably see atom index (4) on line 9 is meant to be a
heavy atom thus I haven't got a clue where I'm going wrong. Any insights
would be greatly appreciated.
Thanks in advance,
Ben Tehan.



More information about the gromacs.org_gmx-users mailing list