[gmx-users] for help about reading xtc file

Mark Abraham mark.j.abraham at gmail.com
Thu Aug 15 21:09:38 CEST 2013

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 the right types to give them.


On Thu, Aug 15, 2013 at 7:29 PM, Xu, Yechuan <y.xu at neu.edu> wrote:
> 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 structure or union
> Thanks in advance.
> YC--
> gmx-users mailing list    gmx-users at gromacs.org
> http://lists.gromacs.org/mailman/listinfo/gmx-users
> * Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/Search before posting!
> * Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-users-request at gromacs.org.
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists

More information about the gromacs.org_gmx-users mailing list