4 * This source code is part of
8 * GROningen MAchine for Chemical Simulations
12 * Copyright (c) 1991-1999
13 * BIOSON Research Institute, Dept. of Biophysical Chemistry
14 * University of Groningen, The Netherlands
17 * GROMACS: A message-passing parallel molecular dynamics implementation
18 * H.J.C. Berendsen, D. van der Spoel and R. van Drunen
19 * Comp. Phys. Comm. 91, 43-56 (1995)
21 * Also check out our WWW page:
22 * http://md.chem.rug.nl/~gmx
27 * Great Red Oystrich Makes All Chemists Sane
29 static char *SRCID_readev_c
= "$Id$";
35 rvec
**read_ev(char *fn
,int natoms
)
43 for(i
=0; (i
<DIM
*natoms
); i
++)
46 for(i
=0; (i
<DIM
*natoms
); i
++) {
47 for(j
=k
=0; (j
<natoms
); j
++) {
48 fscanf(in
,"%d%d%lf%lf%lf",&ei
,&ai
,&xx
,&yy
,&zz
);
59 real
**read_proj(int nev
,int nframes
,char *base
)
68 for(i
=0; (i
<nev
); i
++) {
69 fprintf(stderr
,"\rEV %d",i
);
70 snew(evprj
[i
],nframes
);
71 sprintf(buf
,"%s%d",base
,i
+1);
73 for(j
=0; (j
<nframes
); j
++) {
74 fscanf(in
,"%d%lf",&d
,&x
);
79 fprintf(stderr
,"\rSuccesfully read eigenvector projections\n");