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

Mark Abraham Mark.Abraham at anu.edu.au
Thu Apr 10 17:01:52 CEST 2008


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?

Mark



More information about the gromacs.org_gmx-developers mailing list