e5509e6a9cb13a82a97c8b33f780d0877c156c83
[alexxy/gromacs.git] / include / calcgrid.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  * GRowing Old MAkes el Chrono Sweat
28  */
29 static char *SRCID_calcgrid_h = "$Id$";
30
31 #ifdef HAVE_CONFIG_H
32 #include <config.h>
33 #endif
34
35 real calc_grid(matrix box,real gr_sp,int *nx,int *ny,int *nz,int nnodes);
36 /* Sets the number of grid points for each zero n* to the first reasonable
37  * number which gives a spacing equal to or smaller than gr_sp.
38  * nx and ny should be divisible by nnodes, an error is generated when this
39  * can not be achieved by calc_grid.
40  * Returns the maximum grid spacing.
41  */