<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br><br>Sorry to bother you again, but I am new to gromacs and many theings don't make sense yet. <br>I have tried reading the manual but I do not understand what you mean by "Note how the automatically-generated "posre.itp" file is #included at 
the end of the Protein_A moleculetype, *before* any other 
molecules are introduced. You have to do the same with any new #include statements or 
directives you add." <br><br>I tried using #include in front of my code for [position_restraints] but that just gives an error. So I suppose that isn't what you mean. <br>Furthermore, in section 5.7.1 of the manual pg110 an example topology file called urea.top is shown. there is no include there.<br><br>In this example .top file they just seem to have added the position restraints they want after the dihedrals. This approach does not seem to be working for me and I can not understand why. <br><br>Thank you again for your help, <br>Abdullah<br><br>&gt; Date: Thu, 3 Jun 2010 09:43:18 -0400<br>&gt; From: jalemkul@vt.edu<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: Re: [gmx-users] position restraints<br>&gt; <br>&gt; <br>&gt; <br>&gt; abdullah ahmed wrote:<br>&gt; &gt; Hi!<br>&gt; &gt; <br>&gt; &gt; In your previous mail you mentioned:<br>&gt; &gt; <br>&gt; &gt; The position restraints must belong to the [moleculetype] of<br>&gt; &gt; the species to be restrained. * Once you #include a new molecule, you <br>&gt; &gt; start a new<br>&gt; &gt; [moleculetype] entry and the position restraints belong to it. *<br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; So I rechecked my .top file and found that [moleculetype] only occurs <br>&gt; &gt; once. Perhaps I have misunderstood you. So I added the top file below. I <br>&gt; <br>&gt; No it doesn't.  Each time you #include a new .itp file, you are telling grompp <br>&gt; to copy and paste the contents of that .itp file in that location.  Have a look <br>&gt; at spc.itp - it starts a new moleculetype.<br>&gt; <br>&gt; http://www.gromacs.org/Documentation/Include_File_Mechanism<br>&gt; <br>&gt; Note how the automatically-generated "posre.itp" file is #included at the end of <br>&gt; the Protein_A moleculetype, *before* any other molecules are introduced.  You <br>&gt; have to do the same with any new #include statements or directives you add.<br>&gt; <br>&gt; -Justin<br>&gt; <br>&gt; &gt; did not add the contents of [atoms] [bonds] etc because I felt the mail <br>&gt; &gt; would become unnecessarily long.<br>&gt; &gt; <br>&gt; &gt; ; Include forcefield parameters<br>&gt; &gt; #include "ffoplsaa.itp"<br>&gt; &gt; <br>&gt; &gt; [ moleculetype ]<br>&gt; &gt; ; Name            nrexcl<br>&gt; &gt; Protein_A           3<br>&gt; &gt; <br>&gt; &gt; [ atoms ]<br>&gt; &gt; <br>&gt; &gt; [ bonds ]<br>&gt; &gt; <br>&gt; &gt; [ pairs ]<br>&gt; &gt; <br>&gt; &gt; [ angles ]<br>&gt; &gt; <br>&gt; &gt; [ dihedrals ]<br>&gt; &gt; <br>&gt; &gt; [ dihedrals ]<br>&gt; &gt; <br>&gt; &gt; ; Include Position restraint file<br>&gt; &gt; #ifdef POSRES<br>&gt; &gt; #include "posre.itp"<br>&gt; &gt; #endif<br>&gt; &gt; <br>&gt; &gt; ; Include water topology<br>&gt; &gt; #include "spc.itp"<br>&gt; &gt; <br>&gt; &gt; #ifdef POSRES_WATER<br>&gt; &gt; ; Position restraint for each water oxygen<br>&gt; &gt; [ position_restraints ]<br>&gt; &gt; ;  i funct       fcx        fcy        fcz<br>&gt; &gt;    1    1       1000       1000       1000<br>&gt; &gt; #endif<br>&gt; &gt; <br>&gt; &gt; ; Include generic topology for ions<br>&gt; &gt; #include "ions.itp"<br>&gt; &gt; <br>&gt; &gt; [ system ]<br>&gt; &gt; ; Name<br>&gt; &gt; Protein<br>&gt; &gt; <br>&gt; &gt; [ molecules ]<br>&gt; &gt; ; Compound        #mols<br>&gt; &gt; Protein_A           1<br>&gt; &gt; <br>&gt; &gt; Thanks again for your help,<br>&gt; &gt; Abdullah<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign <br>&gt; &gt; up now. &lt;https://signup.live.com/signup.aspx?id=60969&gt;<br>&gt; <br>&gt; -- <br>&gt; ========================================<br>&gt; <br>&gt; Justin A. Lemkul<br>&gt; Ph.D. Candidate<br>&gt; ICTAS Doctoral Scholar<br>&gt; MILES-IGERT Trainee<br>&gt; Department of Biochemistry<br>&gt; Virginia Tech<br>&gt; Blacksburg, VA<br>&gt; jalemkul[at]vt.edu | (540) 231-9080<br>&gt; http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin<br>&gt; <br>&gt; ========================================<br>&gt; -- <br>&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; Please search the archive at http://www.gromacs.org/search before posting!<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 http://www.gromacs.org/mailing_lists/users.php<br>                                               <br /><hr />Hotmail: Powerful Free email with security by Microsoft. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Get it now.</a></body>
</html>