[gmx-developers] Getting the last frame in an xtc file

Ran Friedman r.friedman at bioc.uzh.ch
Thu Apr 10 18:02:33 CEST 2008


Mark Abraham wrote:
> Ran Friedman wrote:
>> One more piece of information:
>> I replaced xtc_get_current_frame_time of GMX 3.3.3 with that of GMX
>> 3.3.1 and recompiled.
>>
>> Now xtc_get_last_frame_time does work.
>
> Well that's something.
>
>> Ran Friedman wrote:
>>> 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.
>
> What value does ret have?
-1
Ran.



More information about the gromacs.org_gmx-developers mailing list