[gmx-users] A question regarding the xdr lib

David van der Spoel spoel at xray.bmc.uu.se
Mon Apr 6 22:56:43 CEST 2009


LuLanyuan wrote:
> Hello,
> I just compiled the xdr file lib that was recently released on the 
> Gromacs website.
> I'm just wondering what's the meaning of "char *fn" in the xdrfile_???.h 
> as in:
> 
> /* This function returns the number of atoms in the xtc file in *natoms */
>   extern int read_xtc_natoms(char *fn,int *natoms);
> 
>   /* Read one frame of an open xtc file */
>   extern int read_xtc(XDRFILE *xd,int natoms,int *step,float *time,
>                       matrix box,rvec *x,float *prec);
> 
> Is the "char *fn" the name of the xdr file?
yes.

please check the test program, for examples.

> Can anyone give me a clue? Thanks very much.
> Lanyuan Lu
> 
> 
> ------------------------------------------------------------------------
> 微软地图实时路况,为您节省的不仅仅是时间! 立即查看! 
> <http://ditu.live.com/default.aspx?v=2&form=MICHAJ&cp=qcbgzzsz1gzz&style=r&lvl=4&tilt=-90&dir=0&alt=-1000&phx=0&phy=0&phscl=1&trfc=1&encType=1>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmx-users mailing list    gmx-users at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-users
> Please search the archive at http://www.gromacs.org/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/mailing_lists/users.php


-- 
David.
________________________________________________________________________
David van der Spoel, PhD, Professor of Biology
Dept. of Cell and Molecular Biology, Uppsala University.
Husargatan 3, Box 596,  	75124 Uppsala, Sweden
phone:	46 18 471 4205		fax: 46 18 511 755
spoel at xray.bmc.uu.se	spoel at gromacs.org   http://folding.bmc.uu.se
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



More information about the gromacs.org_gmx-users mailing list