hello everyone,<br><br>while doing grompp for prest by giving command<br>grompp -f *_md_water_prest.mdp -c *_md_water_em.gro -p *.top -o *_md_water_prest.tpr<br><br><b>i get the error</b><br>------------------------------------------------------<br>
Program grompp, VERSION 4.0<br>Source code file: toppush.c, line: 1196<br><br>Fatal error:<br>[ file posre.itp, line 8 ]:<br>Atom index (7) in position_restraints out of bounds (1-3).<br>This probably means that you have inserted topology section &quot;position_restraints&quot;<br>
in a part belonging to a different molecule than you intended to.<br>In that case move the &quot;position_restraints&quot; section to the right molecule.<br><br><b>my&nbsp; topology file is </b><br>; The Force Fields to be included<br>
#include &quot;ffgmx.itp&quot;<br><br>; Include topology<br>#include &quot;boc.itp&quot;<br><br><b>; Include water topology<br>#include &quot;spc.itp&quot;<br><br>; Include position restraint file <br>#ifdef POSRES<br>#include &quot;posre.itp&quot;<br>
#endif</b><br><br>#ifdef POSRE_WATER<br>; Position Restraint for each water oxygen<br>[ position_restraints ]<br>; i funct&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fcx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fcy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fcz<br>&nbsp; 1&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1000<br>#endif<br><br>
<br>[ system ]<br>; Name<br>DRG in water<br><br>[ molecules ]<br>; Compound&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #mols<br>DRG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br><br><b>but then on ur advice to the mail which i had written earlier<br>i had rearrange my top file i.e i had interchanged water topolgy and position restraint position<br>
i.e.</b><br>; The Force Fields to be included<br>#include &quot;ffgmx.itp&quot;<br><br>; Include topology<br>#include &quot;boc.itp&quot;<br><br><b>; Include position restraint file <br>#ifdef POSRES<br>#include &quot;posre.itp&quot;<br>
#endif<br><br>; Include water topology<br>#include &quot;spc.itp&quot;<br></b><br>#ifdef POSRE_WATER<br>; Position Restraint for each water oxygen<br>[ position_restraints ]<br>; i funct&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fcx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fcy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fcz<br>
&nbsp; 1&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1000<br>#endif<br><br>[ system ]<br>; Name<br>DRG in water<br><br>[ molecules ]<br>; Compound&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #mols<br>DRG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br>SOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 936<br><br><b>After that i get no error.<br>
tell me whether i m correct at this point<br></b><br>Bhawana<br><br>