<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
One more piece of information:<br>
I replaced xtc_get_current_frame_time of GMX 3.3.3 with that of GMX
3.3.1 and recompiled.<br>
<br>
Now xtc_get_last_frame_time does work.<br>
<br>
Ran.<br>
<br>
Ran Friedman wrote:
<blockquote cite="mid47FE1E83.8070102@bioc.uzh.ch" type="cite">
  <pre wrap="">Dear Mark, GMX developers,

Unfortunately this doesn't work. In any case, this part of the code
returns -1 in any case:
 }else if(ret == -1){
    if(gmx_fseek(xdrfiles[fp+1],off,SEEK_SET)) {
      return -1;
    }
    return -1;
 }

and even if I try to move backwards 2*sizeoff(int) at a time  it doesn't
get me anywhere.

Ran.


Mark Abraham wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Ran Friedman wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Mark Abraham wrote:
      </pre>
      <blockquote type="cite">
        <pre wrap="">Roughly speaking, xtc_at_header_start expects to be at the start of a
frame to read its header, or to fail. The 3.3.1 version of
xtc_get_frame_number does the test-for-header with explicit code,
whereas 3.3.3 does it with the call to xtc_at_header_start. When the
test fails, and xtc_at_header_start fails, the 3.3.3 version should
probably have

    if(gmx_fseek(xdrfiles[fp+1],off-sizeof(int)*2,SEEK_SET)){

as line 1328, not

    if(gmx_fseek(xdrfiles[fp+1],off,SEEK_SET)){

so that it seeks backwards in the same way as the 3.3.1 code does. Ran
can probably test this to see if it works :-)
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
gmx-developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a>
<a class="moz-txt-link-freetext" href="http://www.gromacs.org/mailman/listinfo/gmx-developers">http://www.gromacs.org/mailman/listinfo/gmx-developers</a>
Please don't post (un)subscribe requests to the list. Use the 
www interface or send it to <a class="moz-txt-link-abbreviated" href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.

  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
------------------------------------------------------
Ran Friedman
Postdoctoral Fellow
Computational Structural Biology Group (A. Caflisch)
Department of Biochemistry
University of Zurich
Winterthurerstrasse 190
CH-8057 Zurich, Switzerland
Tel. +41-44-6355593
Email: <a class="moz-txt-link-abbreviated" href="mailto:r.friedman@bioc.unizh.ch">r.friedman@bioc.unizh.ch</a>
Skype: ran.friedman
------------------------------------------------------
</pre>
</body>
</html>