[gmx-users] location of void write_hconf_p

Anton Feenstra feenstra at chem.vu.nl
Tue Jul 16 11:38:26 CEST 2002


Nguyen Hoang Phuong wrote:
> 
> Dear All,
> 
> there are many extern Modifier in the header files, e.g,
> 
> extern void write_hconf_p(FILE *out,char *title,t_atoms *atoms, int ndec,
>                           rvec *x,rvec *v,matrix box);
> 
> in the confio.h. I'm searching for this void and does any one know exactly
> where it is? Thanks in advance.

As most of these things are, this is in src/gmxlib/confio.c (this is
general for any definition in include/<file>.h, the source is in
src/gmxlib/<file>.c ; although there are exceptions).

I have defined an alias (for tcsh):

alias gg        'grep \!* {,*/,*/*/}*.{c,cc,m4,h}'

which allows me to do 'gg write_hconf_p' in e.g. <GMXDIR>/src and get:

include/confio.h:extern void write_hconf_p(FILE *out,char *title,t_atoms *atoms, int ndec,
src/gmxlib/confio.c:void write_hconf_p(FILE *out,char *title,t_atoms *atoms, int pr,
src/gmxlib/confio.c:  write_hconf_p(out,title,atoms,pr,x,v,box);
src/gmxlib/trxio.c:      write_hconf_p(fio_getfp(fnum),title,fr->atoms,
src/tools/g_confrms.c:      write_hconf_p(fp,title1,&atoms1,3,x1,v1,box1);
src/tools/g_confrms.c:    write_hconf_p(fp,title2,&atoms2,3,x2,v2,box2);
src/tools/trjconv.c:            write_hconf_p(out,title,&useatoms,prec2ndec(frout.prec),

as a result.

-- 
Groetjes,

Anton
 ________ ___________________________________________________________
|        | Anton Feenstra                                            |
| .      | Dept. of Pharmacochemistry - Vrije Universiteit Amsterdam |
| |----  | De Boelelaan 1083 - 1081 HV Amsterdam - The Netherlands   |
| |----  | Tel: +31 20 44 47608 - Fax: +31 20 44 47610               |
| ' __   | Feenstra at chem.vu.nl - http://www.chem.vu.nl/afdelingen/FAR|
|  /  \  |-----------------------------------------------------------|
| (    ) | Dept. of Biophysical Chemistry - University of Groningen  |
|  \__/  | Nijenborgh 4 - 9747 AG Groningen - The Netherlands        |
|   __   | Tel +31 50 363 4327 - Fax +31 50 363 4800                 |
|  /  \  | K.A.Feenstra at chem.rug.nl - http://md.chem.rug.nl/~anton   |
| (    ) |-----------------------------------------------------------|
|  \__/  | "Right Now My Job is Eating These Doughnuts" (Bodycount)  |
|________|___________________________________________________________|



More information about the gromacs.org_gmx-users mailing list