<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div>Why don't you simply define a extra bond between your two CYS side chains beads?&nbsp;<div><br><div><div>On May 13, 2010, at 3:31 PM, Anna Duncan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div>I'm trying to energy minimise a protein structure. &nbsp;In one area of the structure there are some salt bridges and when I do an energy minimisation without any restraints these are disrupted, which is something I want to avoid. &nbsp;To that end, I've tried restraining the residues that are involved, first with position restraints and then with distance restraints, but in both cases I get a segmentation fault in the same place.</div><div>The command I issue looks like:</div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">grompp -f em.mdp -c 1okc_ex.cg.gro -p 1okc_ex.top -o 1okc_min_sbRes -v -n salt_bridges.ndx</span></font></font></div><div><br></div><div>and the output:</div><div><div>I<font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">gnoring obsolete mdp entry 'title'</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">Ignoring obsolete mdp entry 'cpp'</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">Replacing old mdp entry 'unconstrained_start' by 'continuation'</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">Back Off! I just backed up mdout.mdp to ./#mdout.mdp.10#</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">checking input for internal consistency...</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">NOTE 1 [file em.mdp, line unknown]:</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;&nbsp;For energy conservation with switch/shift potentials, rlist should be 0.1</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;&nbsp;to 0.3 nm larger than rcoulomb.</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">NOTE 2 [file em.mdp, line unknown]:</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;&nbsp;For energy conservation with switch/shift potentials, rlist should be 0.1</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;&nbsp;to 0.3 nm larger than rvdw.</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">processing topology...</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">Generated 0 of the 465 non-bonded parameter combinations</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">Segmentation fault</span></font></font></div><div><br></div><div>--------------------------------------------------------------------------------------</div><div><br></div></div><div>Like I say, when I do this without the restraints, grompp and mdrun run fine. &nbsp;The only differences, then, between the input is the line in em.mdp:</div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">define = -DDISTRESB</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">The topoolgy file, 1okc_ex.top looks like:</span></font></div><div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">#include "martini_v2.1.itp"</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">#include "1okc_ex.itp"</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">#ifdef POSRESB</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">#include posre_saltbridges.itp</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">#endif</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">#ifdef DISTRESB</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">#include distre_sb.itp</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">#endif</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">[ system ]</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">1OKC_EX SIMULATION</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">[ molecules ]</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">Protein 1</span></font></font></div><div><br></div><div>--------------------------------------------------------------------------------------</div><div><br></div><div>The position restraints file looks like:&nbsp;</div><div><div>;<font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"> position restraints for r_28_r_31_r_133_r_136_r_230_r_233 of God Rules Over Mankind, Animals, Cosmos and Such</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">[ position_restraints ]</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">; &nbsp;i funct &nbsp; &nbsp; &nbsp; fcx &nbsp; &nbsp; &nbsp; &nbsp;fcy &nbsp; &nbsp; &nbsp; &nbsp;fcz</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;&nbsp;52 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;&nbsp;53 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;&nbsp;59 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;&nbsp;60 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;&nbsp;61 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;296 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;297 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;303 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;304 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;305 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;505 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;506 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;511 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;512 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;513 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000 &nbsp; &nbsp; &nbsp; 1000</span></font></font></div><div><br></div><div>--------------------------------------------------------------------------------------</div><div><br></div><div>and the distance restraints file looks like:</div><div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">; distance restraints for h1-h3_sb of God Rules Over Mankind, Animals, Cosmos and Such</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">[ distance_restraints ]</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">; &nbsp; i &nbsp; &nbsp; j ? label &nbsp; &nbsp; &nbsp;funct &nbsp; &nbsp; &nbsp; &nbsp; lo &nbsp; &nbsp; &nbsp; &nbsp;up1 &nbsp; &nbsp; &nbsp; &nbsp;up2 &nbsp; &nbsp; weight</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;&nbsp; 53 &nbsp; 395 1 &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp;2.00181 &nbsp; &nbsp;2.20181 &nbsp; &nbsp;3.20181 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;&nbsp;297 &nbsp; 513 1 &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; 0.462702 &nbsp; 0.662702 &nbsp; &nbsp; 1.6627 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">&nbsp;&nbsp; 61 &nbsp; 506 1 &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; 0.3818 &nbsp; &nbsp; 0.5818 &nbsp; &nbsp; 1.5818 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1</span></font></div><div><br></div></div><div><div>--------------------------------------------------------------------------------------</div><div><br></div><div><br></div><div>I can't work out what is giving the segmentation fault because I think the restraint files are in the right format and I can't think of what else would go wrong at this stage for a segmentation fault to occur.</div><div><br></div><div>In the grompp run that works (without any restraints) the line after where the segmentation error occurs in the other cases looks like:</div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Excluding 1 bonded neighbours molecule type 'Protein'</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div><div>Many thanks,</div><div>Anna</div></div></div><div><br></div></div></div>-- <br>gmx-users mailing list &nbsp;&nbsp;&nbsp;<a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br><a href="http://lists.gromacs.org/mailman/listinfo/gmx-users">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>Please search the archive at http://www.gromacs.org/search before posting!<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 http://www.gromacs.org/mailing_lists/users.php</blockquote></div><br></div></body></html>