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 * GRowing Old MAkes el Chrono Sweat
33 static char *SRCID_topexcl_h
= "$Id$";
36 #ident "@(#) topexcl.h 1.11 11/23/92"
37 #endif /* HAVE_IDENT */
42 int nr
; /* nr atoms (0 <= i < nr) (atoms->nr) */
43 int nrex
; /* with nrex lists of neighbours */
44 /* respectively containing zeroth, first */
45 /* second etc. neigbours (0 <= nre < nrex) */
46 int **nrexcl
; /* with (0 <= nrx < nrexcl[i][nre]) neigbours */
47 /* per list stored in one 2d array of lists */
48 int ***a
; /* like this: a[i][nre][nrx] */
51 extern void init_nnb(t_nextnb
*nnb
, int nr
, int nrex
);
52 /* Initiate the arrays for nnb (see above) */
54 extern void done_nnb(t_nextnb
*nnb
);
55 /* Cleanup the nnb struct */
58 #define print_nnb(nnb, s) __print_nnb(nnb, s)
59 extern void print_nnb(t_nextnb
*nnb
, char *s
);
60 /* Print the nnb struct */
62 #define print_nnb(nnb, s)
65 extern void gen_nnb(t_nextnb
*nnb
,t_params plist
[]);
66 /* Generate a t_nextnb structure from bond information.
67 * With the structure you can either generate exclusions
68 * or generate angles and dihedrals. The structure must be
69 * initiated using init_nnb.
72 extern void nnb2excl (t_nextnb
*nnb
, t_block
*excl
);
73 /* generate exclusions from nnb */
75 extern void generate_excl (int nrexcl
, int nratoms
,
76 t_params plist
[],t_block
*excl
);
77 /* Generate an exclusion block from bonds and constraints in
80 #endif /* _topexcl_h */