Hello all !!<div><br></div><div>I was playing around with template.c and stuck in a problem.</div><div>In the program inside the do loop i.e;</div><div><br clear="all"><div> /* This is the main loop over frames */</div><div>

  do {</div><div>    /* coordinates are available in the vector fr.x</div><div>     * you can find this and all other structures in</div><div>     * the types directory under the gromacs include dir.</div><div>     * Note how flags determines wheter to read x/v/f!</div>

<div>     */</div><div>printf (&quot;%8.3f\n&quot;, fr.time);</div><div><div> if (fr.time == (4000.000 + (50.0 * inc)))</div><div>        printf (&quot;test&quot;);</div><div>        {</div><div>        for (ra=0; ra&lt;i;ra++)</div>

<div>              {</div></div><div><br></div><div>              }</div><div>        } inc ++;</div><div>        </div><div>      }while (read_next_frame(status,&amp;fr));</div><div><br></div><div>The 1st printf statement do prints the frame time. While the 2nd printf inside  the if loop doesnt print any thing, meaning that the if condition is not being satisfied. I want to execute the statements under if loop after each 50 ps time.</div>

<div><br></div><div>Can some point out what wrong am I doing.</div><div><br></div><div>Thanks</div><div><br></div><div><br></div><div><br></div><div><br></div>--<br>Chandan kumar Choudhury<br>NCL, Pune<br>INDIA<br>
</div>