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 * Green Red Orange Magenta Azure Cyan Skyblue
33 static char *SRCID_rwtop_h
= "$Id$";
36 #ident "@(#) rwtop.h 1.5 12/16/92"
37 #endif /* HAVE_IDENT */
43 * This module handles topolgy manipulation, including (binary) writing
44 * to and reading from a file, freeing the allocated space and textual
45 * representation of the complete topology structure.
48 extern long wr_top(FILE *fp
,t_topology
*top
);
50 * Writes the topology to the file, specified by fp. The function
51 * returns the number of bytes written. The topology is not modified!
54 extern long rd_top(FILE *fp
,t_topology
*top
);
56 * Reads the topology from the file, specified by fp. This will
57 * include allocating the needed space. The function returns the
58 * number of bytes read.
61 extern void rm_top(t_topology
*top
);
63 * Frees the space allocated by the topology. This is only
64 * guaranteed to work when the same allocation strategy is used as
68 extern void pr_energies(FILE *fp
,int indent
,char *title
,t_energy
*e
,int n
);
70 * This routine prints out a (human) readable representation of
71 * an array of energy structs to the file fp. Ident specifies the
72 * number of spaces the text should be indented. Title is used to
73 * print a header text.
76 extern void pr_inputrec(FILE *fp
,int indent
,char *title
,t_inputrec
*ir
);
78 * This routine prints out a (human) readable representation of
79 * an input record to the file fp. Ident specifies the number of spaces
80 * the text should be indented. Title is used to print a header text.