cb11e1ade9ab5ea6a4408f8493df3aab3fd336ca
[alexxy/gromacs.git] / include / struc2.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 _struc2_h
31 #define _struc2_h
32
33 static char *SRCID_struc2_h = "$Id$";
34
35 #ifdef HAVE_CONFIG_H
36 #include <config.h>
37 #endif
38
39 #ifdef HAVE_IDENT
40 #ident  "@(#) struc2.h 1.2 15 Sep 1993"
41 #endif /* HAVE_IDENT */
42 #include "typedefs.h"
43
44 typedef struct {
45   atom_id d;
46   atom_id a;
47   atom_id h;
48 } t_dah;
49
50 typedef struct {
51   real  a_dist; 
52   real  h_dist;
53   real  d_dist;
54   int   nr;     
55 } t_water;              
56         
57         
58 typedef struct {
59   real    distance_ad;
60   real    distance_ah;
61   real    angle;
62   bool    h_bond;
63   t_water water;
64 } t_info;
65
66 typedef struct {
67   t_info *info;
68   atom_id  a;
69   atom_id  d;
70   atom_id  h;
71   int    monitor;
72 } t_hbond;
73
74 typedef struct {
75   int     nrt;
76   int     nr;
77   t_hbond *hbond;
78   real    *time;
79 } t_list;
80
81 extern void determine_2struc(FILE *out,t_topology *top,t_list *list);
82
83 #endif  /* _struc2_h */