The suggestions were very helpful.<div>Thanks</div><div><br></div><div>Chandan<br clear="all"><br>--<br>Chandan kumar Choudhury<br>NCL, Pune<br>INDIA<br>
<br><br><div class="gmail_quote">On Sun, May 30, 2010 at 11:32 PM, Tsjerk Wassenaar <span dir="ltr">&lt;<a href="mailto:tsjerkw@gmail.com">tsjerkw@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi Chandan,<br>
<br>
The problem is that with floating points the equality in<br>
<div class="im"><br>
&gt;  if (fr.time == (4000.000 + (50.0 * inc)))<br>
<br>
</div>is very unlikely to be satisfied at any time. To compare floating<br>
point numbers, you&#39;ll have to check whether the value is within a<br>
certain interval. But Jussi&#39;s approach is far more convenient in this<br>
particular case.<br>
<br>
Cheers,<br>
<br>
Tsjerk<br>
<font color="#888888"><br>
--<br>
Tsjerk A. Wassenaar, Ph.D.<br>
<br>
post-doctoral researcher<br>
Molecular Dynamics Group<br>
Groningen Institute for Biomolecular Research and Biotechnology<br>
University of Groningen<br>
The Netherlands<br>
</font><div><div></div><div class="h5">--<br>
gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br>
</div></div></blockquote></div><br></div>