<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Re[4]: [gmx-users] Non-conservation of total energy while using structure file to resume the simulation</title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
  margin: 5px 5px 5px 5px;
  background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #000000}
body, table /* Normal text */
{
 font-size: 9pt;
 font-family: 'Courier New';
 font-style: normal;
 font-weight: normal;
 color: #000000;
 text-decoration: none;
}
span.rvts1 /* Heading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #0000ff;
}
span.rvts2 /* Subheading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #000080;
}
span.rvts3 /* Keywords */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-style: italic;
 color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
span.rvts6
{
 font-weight: bold;
 color: #800000;
}
a.rvts7, span.rvts7
{
 color: #0000ff;
 text-decoration: underline;
}
span.rvts8
{
 font-weight: bold;
 color: #800000;
}
span.rvts9
{
 font-weight: bold;
 color: #800080;
}
span.rvts10
{
 font-size: 8pt;
 font-family: 'arial';
 font-style: italic;
 color: #c0c0c0;
}
a.rvts11, span.rvts11
{
 font-size: 8pt;
 font-family: 'arial';
 color: #0000ff;
 text-decoration: underline;
}
/* ========== Para Styles ========== */
p,ul,ol /* Paragraph Style */
{
 text-align: left;
 text-indent: 0px;
 padding: 0px 0px 0px 0px;
 margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
 text-align: center;
}
--></style>
</head>
<body>

<p>First, sorry for the revival of this thread so late (maybe it should be better to start a new one).</p>
<p><br></p>
<p><span class=rvts6>&gt; ----- Original Message -----</span></p>
<p><span class=rvts6>&gt; From: Dmitri Dubov &lt;</span><a class=rvts7 href="mailto:ddubov@ngs.ru">ddubov@ngs.ru</a><span class=rvts8>&gt;</span></p>
<p><span class=rvts6>&gt; Date: Thursday, May 27, 2010 19:11</span></p>
<p><span class=rvts6>&gt; Subject: Re[2]: [gmx-users] Non-conservation of total energy while</span></p>
<p><span class=rvts6>&gt; using structure file to resume the simulation</span></p>
<p><span class=rvts6>&gt; To: Discussion list for GROMACS users &lt;</span><a class=rvts7 href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><span class=rvts8>&gt;</span></p>
<p><br></p>
<p><span class=rvts9>&gt;&gt; &gt; I expect that either&nbsp;</span></p>
<p><br></p>
<p><span class=rvts9>&gt;&gt; &gt; grompp -f new -o newtpr</span></p>
<p><span class=rvts9>&gt;&gt; &gt; mdrun -s newtpr -cpi old_state.cpt</span></p>
<p><br></p>
<p><span class=rvts9>&gt;&gt; No, this way is unsuccessful, maybe due to somewhat contradictive instructions:</span></p>
<p><span class=rvts9>&gt;&gt; grompp supplies newtpr with usual options</span></p>
<p><span class=rvts9>&gt;&gt; tinit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 0</span></p>
<p><span class=rvts9>&gt;&gt; nsteps &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 100000</span></p>
<p><span class=rvts9>&gt;&gt; simulation_part &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 1</span></p>
<p><br></p>
<p><span class=rvts9>&gt;&gt; and from old_state.cpt the system finds itself on 100000th step already and stops.</span></p>
<p><br></p>
<p><span class=rvts6>&gt; OK. Presumably some more cunning choice of .mdp options would work,</span></p>
<p><span class=rvts6>&gt; or using grompp, tbconv -extend and then mdrun.</span></p>
<p><br></p>
<p><span class=rvts9>&gt;&gt; &gt; grompp -f new -t old_state.cpt -o newtpr</span></p>
<p><span class=rvts9>&gt;&gt; &gt; mdrun -s newtpr</span></p>
<p><span class=rvts9>&gt;&gt; &gt; will do what you want. Please report back if one or both work :-)</span></p>
<p><br></p>
<p><span class=rvts9>&gt;&gt; And the latter variant is working! More precisely I use</span></p>
<p><span class=rvts9>&gt;&gt; grompp -f new -t old_state.cpt -c oldtpr -o newtpr&nbsp;</span></p>
<p><span class=rvts9>&gt;&gt; mdrun_d -s newtpr</span></p>
<p><br></p>
<p>&gt; Mark</p>
<p><br></p>
<p>But I have noted just now that using grompp with -t option results in some bug: after simulation right size of my cubic box (last line of input structure file)</p>
<p>&nbsp; 10.00000 &nbsp;10.00000 &nbsp;10.00000</p>
<p>changes in confout.gro to meaningless</p>
<p>&nbsp; &nbsp;0.00000 &nbsp; 0.00000 &nbsp; 0.00000</p>
<p>To analyse the output properly (e.g. with g_rdf tool) I have to correct this line manually.</p>
<p>And I'm worried whether this bug effects to my simulation itself, during md integration of NVE ensemble in vacuum?&nbsp;</p>
<p><br></p>
<p><span class=rvts10>--&nbsp;</span></p>
<p><span class=rvts10>Rerards,</span></p>
<p><span class=rvts10>&nbsp;Dmitri &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><a class=rvts11 href="mailto:ddubov@ngs.ru">mailto:ddubov@ngs.ru</a></p>

</body></html>