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
29 static char *SRCID_calcgrid_h
= "$Id$";
31 real
calc_grid(matrix box
,real gr_sp
,int *nx
,int *ny
,int *nz
,int nprocs
);
32 /* Sets the number of grid points for each zero n* to the first reasonable
33 * number which gives a spacing equal to or smaller than gr_sp.
34 * nx and ny should be divisible by nprocs, an error is generated when this
35 * can not be achieved by calc_grid.
36 * Returns the maximum grid spacing.