<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>Indeed I forgot to add a pbc call for confout in EM.<br>I fixed it for the next release.<br><br>Note that the broken molecules are not a problem for Gromacs programs,<br>but for visualization you might want to use trjconv -pbc mol.<br><br>Berk<br><br>&gt; Date: Sat, 9 Jan 2010 17:58:43 -0500<br>&gt; From: jalemkul@vt.edu<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: Re: [gmx-users] confout.gro contains PBC-broken molecules after EM        in        parallel with domain decomposition<br>&gt; <br>&gt; <br>&gt; <br>&gt; On 1/9/10 1:44 PM, chris.neale@utoronto.ca wrote:<br>&gt; &gt; Hi Justin,<br>&gt; &gt;<br>&gt; &gt; I can confirm that I see that code snippet in my md.c code, although my<br>&gt; &gt; tests indicate that this is not the end of the story.<br>&gt; &gt;<br>&gt; &gt; I have now taken the output .gro, ran it through trjconv -pbc mol and<br>&gt; &gt; then ran mdrun again under a variety of conditions:<br>&gt; &gt;<br>&gt; &gt; 1. EM(steep) mdrun_mpi NP=8 -dd (BROKEN) *ran twice*<br>&gt; &gt; 2. EM(steep) mdrun_mpi NP=8 -pd (whole)<br>&gt; &gt; 3. EM(steep) mdrun NP=1 (whole)<br>&gt; &gt; 4. MD mdrun_mpi NP=8 -dd (whole)<br>&gt; &gt; 5. MD mdrun_mpi NP=8 -pd (whole)<br>&gt; &gt; 6. MD mdrun NP=1 (whole)<br>&gt; &gt; 7. EM(cg) mdrun_mpi NP=8 -dd (BROKEN)<br>&gt; &gt; 8. EM(l-bfgs) mdrun_mpi NP=8 -dd (n/a)<br>&gt; &gt; error: Cannot do parallel L-BFGS Minimization - yet.<br>&gt; &gt;<br>&gt; &gt; The tests above were with nsteps=500, so I ran one more steep EM with<br>&gt; &gt; mdrun_mpi NP=8 -dd and found that confout.gro was indeed broken over PBC<br>&gt; &gt; even with only a single step (nsteps=1).<br>&gt; &gt;<br>&gt; &gt; Justin: Can you confirm that you can run a steep EM under mdrun_mpi NP=8<br>&gt; &gt; with domain decomposition and obtain a confout.gro that is not broken<br>&gt; &gt; over PBC?<br>&gt; &gt;<br>&gt; <br>&gt; Indeed, you're quite right.  The few systems I had at hand when I posted earlier <br>&gt; were all proteins in water, so nothing was crossing PBC.  My lipid systems <br>&gt; indeed are still broken after EM.<br>&gt; <br>&gt; It looks like the confout writing was fixed in mdrun.c, but perhaps not for the <br>&gt; minimization routines?  Would this be in minimize.c?  I tried looking through <br>&gt; the source a bit, but couldn't come up with a fix.  Too much of a novice :) <br>&gt; Maybe this one is worth a bugzilla?  Probably one of the developers could fix <br>&gt; this in about half a heartbeat.<br>&gt; <br>&gt; -Justin<br>&gt; <br>&gt; &gt; Thank you,<br>&gt; &gt; Chris.<br>&gt; &gt;<br>&gt; &gt; On 1/9/10 11:25 AM, chris.neale at utoronto.ca wrote:<br>&gt; &gt;&gt; Hi Justin,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I just double checked and certainly the confout.gro from my EM run in<br>&gt; &gt;&gt; parallel with domain decomposition in mdrun is broken over periodic<br>&gt; &gt;&gt; boundaries.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I'm running gromacs-4.0.5 on a nehalem under openmpi. Here is my .mdp<br>&gt; &gt;&gt; file<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt; That's really weird. None of my 4.0.x runs have had that problem. Now, I<br>&gt; &gt; am no<br>&gt; &gt; C expert, but I found the following in md.c (taken from the 4.0.5 source):<br>&gt; &gt;<br>&gt; &gt; fprintf(stderr,"\nWriting final coordinates.\n");<br>&gt; &gt; if (ir-&gt;ePBC != epbcNONE &amp;&amp; !ir-&gt;bPeriodicMols &amp;&amp; DOMAINDECOMP(cr)) {<br>&gt; &gt; /* Make molecules whole only for confout writing */<br>&gt; &gt; do_pbc_mtop(fplog,ir-&gt;ePBC,state-&gt;box,top_global,state_global-&gt;x);<br>&gt; &gt;<br>&gt; &gt; ...after which confout.gro is written.<br>&gt; &gt;<br>&gt; &gt; There are no such lines in the 4.0 source, so I think this was added<br>&gt; &gt; over the<br>&gt; &gt; course of later development.<br>&gt; &gt;<br>&gt; &gt; I don't know what's going on with your system(s); maybe we should<br>&gt; &gt; continue any<br>&gt; &gt; other discussion in a new thread, so we don't hijack this one :) There<br>&gt; &gt; are also<br>&gt; &gt; several entries in the list archive where users have spotted broken<br>&gt; &gt; frames in<br>&gt; &gt; the trajectory, but an intact confout.gro.<br>&gt; &gt;<br>&gt; &gt; -Justin<br>&gt; &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 />New Windows 7: Simplify what you do everyday. <a href='http://windows.microsoft.com/shop' target='_new'>Find the right PC for you.</a></body>
</html>