791e1e889727540d1516e2aeaa6312fc76e57707
[alexxy/gromacs.git] / include / xdrf.h
1 /*
2  * $Id$
3  * 
4  *       This source code is part of
5  * 
6  *        G   R   O   M   A   C   S
7  * 
8  * GROningen MAchine for Chemical Simulations
9  * 
10  *               VERSION 2.0
11  * 
12  * Copyright (c) 1991-1999
13  * BIOSON Research Institute, Dept. of Biophysical Chemistry
14  * University of Groningen, The Netherlands
15  * 
16  * Please refer to:
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)
20  * 
21  * Also check out our WWW page:
22  * http://md.chem.rug.nl/~gmx
23  * or e-mail to:
24  * gromacs@chem.rug.nl
25  * 
26  * And Hey:
27  * Green Red Orange Magenta Azure Cyan Skyblue
28  */
29
30 #ifndef _xdrf_h
31 #define _xdrf_h
32
33 static char *SRCID_xdrf_h = "$Id$";
34
35 #ifdef HAVE_CONFIG_H
36 #include <config.h>
37 #endif
38
39 #ifdef USE_XDR
40 #ifdef __GNUC__  
41 #ifdef FALSE
42 #undef FALSE
43 #endif
44 #ifdef TRUE
45 #undef TRUE
46 #endif
47 #endif
48
49 #ifdef __PGI    /*Portland group compiler*/
50 #define int64_t long long
51 #endif
52
53 #include <rpc/rpc.h>
54 #include <rpc/xdr.h>
55 #else
56 typedef int XDR;
57 typedef int bool_t;
58 #endif
59
60 #include "typedefs.h"
61
62 extern int xdropen(XDR *xdrs, const char *filename, const char *type);
63
64 extern int xdrclose(XDR *xdrs);
65
66 extern int xdr3dfcoord(XDR *xdrs, float *fp, int *size, float *precision);
67 /* Read or write reduced precision *float* coordinates */
68
69 extern int xdr_real(XDR *xdrs,real *r); 
70 /* Read or write a *real* value (stored as float) */
71
72 extern int xdr3drcoord(XDR *xdrs,real *fp,int *size,real *precision);
73 /* Read or write reduced precision *real* coordinates */
74
75 #endif