<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7233.69">
<TITLE>RE: [gmx-users] Position restrain</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>mh, actually the status is like this: my system is made of two kind of molecules: one (solvent) with 12 atoms and the other with&nbsp; more (thousands); i tried to run only with the &quot;big&quot; molecule and it works perfectly, it means the atoms restrained are those according to the index number;<BR>
when i introduce the molecule of solvent, it looks like I can lock only the solvent; how can I specify in the grompp the the position restrain refers to on .itp (the molecule) and not the solvent .itp? I thought that using atom index from the gro file would have worked....<BR>
Thanks a lot!<BR>
Regards<BR>
<BR>
Alessandro Mattozzi<BR>
M.Phil., Ph.D. student<BR>
Dept. of Fibre and Polymer Technology<BR>
Royal Institute of Technology<BR>
Stockholm, Sweden<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: gmx-users-bounces@gromacs.org on behalf of Uwe Richter<BR>
Sent: Thu 6/1/2006 11:33 AM<BR>
To: Discussion list for GROMACS users<BR>
Subject: Re: [gmx-users] Position restrain<BR>
<BR>
Hi,<BR>
<BR>
concept of 'molecules' as it is applied within Gromacs has been discussed<BR>
several times already, also with regards to distance restraints, which can<BR>
not be defined between different 'molecules'. Of course you can define<BR>
distance restraints between 'real' molecules by having the molecules<BR>
within the same topology block (atoms,bonds etc.), just without any<BR>
bonding parameters defined between them. Position restraints also have<BR>
to be defined for each topology block ('molecule') and are read in this<BR>
way by grompp. The index file .ndx referres to the atom numbering in the<BR>
structure file (.pdb .gro ...). The id's of the position restraints,<BR>
however,<BR>
refer to atom numbering within the 'molecule', starting from 1 for each, and<BR>
thus ,must be defined/included right after the corresponding 'molecule'<BR>
in the<BR>
.top file.<BR>
This is a little confusing and my chaotic description might not help a lot,<BR>
but it seems you have more than one 'molecule' in your system and the<BR>
one you want the position restraints for only has 12 atoms, even though it<BR>
might have the atom id 101 in your coordinate file.<BR>
<BR>
Best regards,<BR>
Uwe<BR>
<BR>
Alessandro Mattozzi wrote:<BR>
<BR>
&gt;&gt;While running a MD of PE with position restrain, i get this error message<BR>
&gt;&gt;<BR>
&gt;&gt;Fatal error: [ file &quot;posre.itp&quot;, line 6 ]:<BR>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Atom index (101) in position_restraints out of bounds (1-12)<BR>
&gt;&gt;<BR>
&gt;&gt;My atom index goes up to 6000, why do I have to be in the 1-12 range?<BR>
&gt;&gt;&nbsp;&nbsp;&nbsp;<BR>
&gt;&gt;<BR>
&gt;<BR>
&gt;&lt;&lt;your molecule only has 12 atoms and by the way, the error message is<BR>
&gt;&lt;&lt;from grompp.<BR>
&gt;<BR>
&gt;actually my molecule has 12 thousand atoms, half of it dummies and half AUA. The .gro and .ndx contains atoms numbered up to 12000<BR>
&gt;The error ideed comes from grompp.<BR>
&gt;Thanx<BR>
&gt;<BR>
&gt;&nbsp;<BR>
&gt;<BR>
&gt;&gt;Regards<BR>
&gt;&gt;<BR>
&gt;&gt;Alessandro Mattozzi<BR>
&gt;&gt;M.Phil., Ph.D. student<BR>
&gt;&gt;Dept. of Fibre and Polymer Technology<BR>
&gt;&gt;Royal Institute of Technology<BR>
&gt;&gt;Stockholm, Sweden<BR>
&gt;&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;&nbsp;<BR>
&gt;<BR>
&gt;------------------------------------------------------------------------<BR>
&gt;<BR>
&gt;_______________________________________________<BR>
&gt;gmx-users mailing list&nbsp;&nbsp;&nbsp; gmx-users@gromacs.org<BR>
&gt;<A HREF="http://www.gromacs.org/mailman/listinfo/gmx-users">http://www.gromacs.org/mailman/listinfo/gmx-users</A><BR>
&gt;Please don't post (un)subscribe requests to the list. Use the<BR>
&gt;www interface or send it to gmx-users-request@gromacs.org.<BR>
&gt;Can't post? Read <A HREF="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php</A><BR>
&gt;<BR>
<BR>
_______________________________________________<BR>
gmx-users mailing list&nbsp;&nbsp;&nbsp; gmx-users@gromacs.org<BR>
<A HREF="http://www.gromacs.org/mailman/listinfo/gmx-users">http://www.gromacs.org/mailman/listinfo/gmx-users</A><BR>
Please don't post (un)subscribe requests to the list. Use the<BR>
www interface or send it to gmx-users-request@gromacs.org.<BR>
Can't post? Read <A HREF="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>