<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>There are three ways to avoid this bug with free-energy and TIP4P:<br>Or make sure that any energy group that contains perturbed atoms<br>does not include any non-perturbed atoms with charges,<br>or use GMX_NO_SOLV_OPT (slow),<br>or use the fix below.<br><br>Berk<br><br>RCS file: /home/gmx/cvs/gmx/src/mdlib/ns.c,v<br>retrieving revision 1.149<br>retrieving revision 1.149.2.1<br>diff -r1.149 -r1.149.2.1<br>3c3<br>&lt;&nbsp; * $Id: ns.c,v 1.149 2008/08/31 07:08:18 hess Exp $<br>---<br>&gt;&nbsp; * $Id: ns.c,v 1.149.2.1 2009/01/29 10:08:57 hess Exp $<br>544c544<br>&lt;&nbsp;&nbsp;&nbsp;&nbsp; bool&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bDoVdW_i,bDoCoul_i;<br>---<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; bool&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bDoVdW_i,bDoCoul_i,bDoCoul_i_sol;<br>956a957,971<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* For TIP4P the first atom does not have a charge,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * but the last three do. So we should still put an atom<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * without LJ but with charge in the water-atom neighborlist<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * for a TIP4p i charge group.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * For SPC type water the first atom has LJ and charge,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * so there is no such problem.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (iwater == esolNO)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bDoCoul_i_sol = bDoCoul_i;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bDoCoul_i_sol = bDoCoul;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>958c973<br>&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (bDoVdW_i || bDoCoul_i)<br>---<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (bDoVdW_i || bDoCoul_i_sol)<br>1031c1046<br>&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if (!bDoCoul_i)<br>---<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if (!bDoCoul_i_sol)<br><br><br>&gt; Date: Mon, 2 Feb 2009 18:11:16 -0500<br>&gt; From: chris.neale@utoronto.ca<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: [gmx-users] free energy with TIP4P bug fixed<br>&gt; <br>&gt; Hi Berk,<br>&gt; <br>&gt; Could you please post the relevant cvs diff here? While my energies are now output consistently for zero-step mdruns while separating <br>&gt; my energygrps, I am still seeing some very aberrant behaviour when I apply the free-energy code during a 2-10 ns MD run, <br>&gt; even with lambda=0.0. I get the same strange behaviour whether I explicitly make a B-state with no charges in the .itp file <br>&gt; or instead utilize the couple-moltype mdp options.<br>&gt; <br>&gt; I will try the bash "export GMX_NO_SOLV_OPT" solution over the next few days, but I'd like to try all possible solutions in parallel <br>&gt; as this is beginning to take some time.<br>&gt; <br>&gt; Thanks,<br>&gt; Chris.<br>&gt; <br>&gt; From: gmx3 at hotmail.com &lt;http://www.gromacs.org/mailman/listinfo/gmx-users&gt;<br>&gt; To: gmx-users at gromacs.org &lt;http://www.gromacs.org/mailman/listinfo/gmx-users&gt;<br>&gt; Subject: RE: [gmx-users] Re: free energy with TIP4P bug fixed<br>&gt; Date: Thu, 29 Jan 2009 13:48:20 +0100<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; You can apply the cvs diff.<br>&gt; But even simpler, as I said, is just putting your solute and solvent in separate charge** groups.<br>&gt; <br>&gt; **  I meant separate energy groups.<br>&gt; <br>&gt; This should circumvent the issue.<br>&gt; <br>&gt; Berk<br>&gt; <br>&gt; From: dmobley at gmail.com &lt;http://www.gromacs.org/mailman/listinfo/gmx-users&gt;<br>&gt; To: gmx3 at hotmail.com &lt;http://www.gromacs.org/mailman/listinfo/gmx-users&gt;<br>&gt; Date: Thu, 29 Jan 2009 06:35:24 -0600<br>&gt; CC: gmx-users at gromacs.org &lt;http://www.gromacs.org/mailman/listinfo/gmx-users&gt;<br>&gt; Subject: [gmx-users] Re: free energy with TIP4P bug fixed<br>&gt; <br>&gt; Berk,<br>&gt; Any chance of getting a fix for 3.3.x versions also? I have several papers which probably are affected by this problem and I will need to repeat the calculations with a fixed version and produce errata. I would prefer to do this with 3.3.x since (a) not all of the data is with TIP4P, and so I don't need to repeat all the calcs, and would like to use a consistent version, and (b) I am not sure that 4.x does not introduce additional bugs that might affect my calcs.<br>&gt; Thanks!David<br>&gt; On Jan 29, 2009, at 4:21 AM, Berk Hess wrote:Hi,<br>&gt; <br>&gt; The Coulomb energy difference that Chris Neale observed recently<br>&gt; was caused by a bug in the neighborlist assignment with the combination<br>&gt; of free energy and tip4p water optimization.<br>&gt; This bug would cause a few tip4p-tip4p charge interactions to be missing.<br>&gt; I think it has been present in all Gromacs version which have tip4p optimized loops,<br>&gt; for sure it was in 3.3.<br>&gt; I have fixed this for the upcoming Gromacs 4.0.4 release.<br>&gt; <br>&gt; I assume this bug also caused the cut-off dependence that David Mobley observed.<br>&gt; <br>&gt; I have done a lot of free energy calculation with tip4p and never noticed<br>&gt; any problems. This was because I always had the perturbed molecule<br>&gt; in a separate energy group, which circumvents the problem.<br>&gt; <br>&gt; So for the moment and for checking if you had the problem with older Gromacs <br>&gt; versions, you can simply put the perturbed atoms and tip4p in separate energy groups.<br>&gt; <br>&gt; Berk<br>&gt; <br>&gt; <br>&gt; What can you do with the new Windows Live? Find out<br>&gt; <br>&gt; See all the ways you can stay connected to friends and family<br>&gt; _________________________________________________________________<br>&gt; Express yourself instantly with MSN Messenger! Download today it's FREE!<br>&gt; http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL: http://www.gromacs.org/pipermail/gmx-users/attachments/20090129/1179cae4/attachment-0001.html<br>&gt; <br>&gt; _______________________________________________<br>&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; http://www.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 />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>