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_protonate_c
= "$Id$";
40 int main (int argc
,char *argv
[])
42 static char *desc
[] = {
43 "protonate protonates a protein molecule."
53 { efSTX
, "-f", NULL
, ffREAD
},
54 { efSTO
, "-o", "confout", ffWRITE
}
56 #define NFILE asize(fnm)
58 CopyRight(stderr
,argv
[0]);
59 parse_common_args(&argc
,argv
,0,FALSE
,NFILE
,fnm
,0,NULL
,
60 asize(desc
),desc
,0,NULL
);
65 get_stx_coordnum(opt2fn("-f",NFILE
,fnm
),&natoms
);
66 init_t_atoms(atoms
,natoms
,FALSE
);
69 read_stx_conf(opt2fn("-f",NFILE
,fnm
),title
,atoms
,x
,v
,box
);
72 fprintf(stderr
,"Read title: %s\n",title
);
77 write_sto_conf(opt2fn("-o",NFILE
,fnm
),title
,atoms
,x
,v
,box
);