Re: [gmx-users] for help about reading xtc file

2013-08-16 Thread Xu, Yechuan
;s only worth bothering with if you'll do that re-read several > times. Is writing out the frame(s) of interest a better solution? > > Mark > > On Fri, Aug 16, 2013 at 6:25 PM, Xu, Yechuan wrote: >> Yes, I realized that it is a opaque structure. >> I just want to r

Re: [gmx-users] for help about reading xtc file

2013-08-16 Thread Xu, Yechuan
, YC On Aug 16, 2013, at 4:39 AM, Mark Abraham wrote: > On Thu, Aug 15, 2013 at 11:33 PM, Xu, Yechuan wrote: >> Thank you for your reply. after I read the xdrfile.c, >> >> I changed the sentence as >> pos=xdr_getpos((XDR*) (xtc->xdr)); >> >> like that

Re: [gmx-users] for help about reading xtc file

2013-08-15 Thread Xu, Yechuan
dr)); printf("%d\n",pos); } xdrfile_close (xtc); } Thanks, YC On Aug 15, 2013, at 3:09 PM, Mark Abraham wrote: > Right, because a pointer to an XDRFILE is neither a struct nor a union > :-) Look at how these routines are used, and consult the header files > for t

[gmx-users] for help about reading xtc file

2013-08-15 Thread Xu, Yechuan
Hi Everyone, I want to read a certain frame in a xtc file. How can I do that? I see there are xdr_getpos() and xdr_setpos(). How should I use these functions? I tried: XDRFILE *xtc; unsigned int pos; pos=xdr_getpos(xtc.xdr); but I got: error: request for member ‘xdr’ in something not a structu