<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
<br><br><blockquote><hr>Date: Wed, 23 May 2007 02:29:36 -0700<br>From: yesint4@yahoo.com<br>To: gmx-users@gromacs.org<br>Subject: [gmx-users] Restarting AFM pulling<br><br>

<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hello everyone,<br>I'me trying to run a very long simulation with the AFM pulling, which should be partitioned into many smaller pieces. However, this seems that the pull code does not preserve the force even if the position of the spring is set to what was observed at the end of the previous run.<br>Here is an example. I have one pull group pulled in Z direction, so in the .pdo file, according to the manual, I have the time, the position of the reference, the position of the pull group and the pos. of the spring.<br>The end of the .pdo from the first run looks like this:<br><br>...<br>12.000001&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 4.537002&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.228887&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.279260<br><br>I start new run with the afm_init1 = 0 0 -3.257742&nbsp;&nbsp; (the last number is 1.279260-4.537002 i.e. relative pos. of the spring as it should be).<br>And in the beginning of the new run I get:<br><br>Hello Everybody,<br>I just red the email of mister Semen and I indeed found a bug in the pull code. I allready checked it together with my professor and could duplicate both error and prove solution.<br>In the code md.c in the funtion :<br><br>pull(&amp;pulldata,state-&gt;x,f,force_vir,state-&gt;box,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; top,inputrec-&gt;delta_t,step,t,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mdatoms,START(nsb),HOMENR(nsb),cr);<br><br>The integer parameter is step incorrect incase of continuation of the run, step has to be equal to step_rel instead of step. Otherwise the following equation in pull.c is not correct:<br>In do_afm();<br><br>for(m=0;m&lt;DIM;m++)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pull-&gt;grp[i].spring[m] = pull-&gt;grp[i].AfmInit[m] + pull-&gt;ref.x_unc[m] +<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pull-&gt;grp[i].AfmVec[m]*pull-&gt;grp[i].AfmRate*step*dt;<br><br>As pull-&gt;grp[i].AfmInit[m] is reset, step isn't. In case of resubmitting the occurring error scales with rate and the length of the run. The same error in the constraint part in pull.c.<br><br>I reported the bug at:<br>http://www.pku.edu.cn/ehomepage.htm<br><br>greetings,<br><br>Jiang,<br><br><br><br><br><br><br></div></div></div><br>
      <hr size="1">You snooze, you lose. <a href="http://us.rd.yahoo.com/evt=47959/*http://advision.webevents.yahoo.com/mailbeta/newmail_html.html" target="_blank">Get messages ASAP with AutoCheck</a><br> 
in the all-new Yahoo! Mail Beta. </blockquote><br /><hr />Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! <a href='http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us' target='_new'>Try it!</a></body>
</html>