ecbc34aa2c926d7602d03b2d68c5259c4855f1ec
[alexxy/gromacs.git] / include / ewald.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  * Good ROcking Metal Altar for Chronical Sinners
28  */
29
30 #ifndef _ewald_h
31 #define _ewald_h
32
33 static char *SRCID_ewald_h = "$Id$";
34
35 #ifdef HAVE_CONFIG_H
36 #include <config.h>
37 #endif
38
39 #include <stdio.h>
40 #include "typedefs.h"
41 #include "complex.h"
42 #include "fftgrid.h"
43
44 extern real calc_ewaldcoeff(real rc,real dtol);
45 /* Determines the Ewald parameter, both for Ewald and PME */
46
47 extern real do_ewald(FILE *log,       bool bVerbose,
48                      t_inputrec *ir,
49                     rvec x[],        rvec f[],
50                     real charge[],   rvec box,
51                      t_commrec *cr,  t_nsborder *nsb,
52                      matrix lrvir, real ewaldcoeff);
53 /* Do an Ewald calculation for the long range electrostatics. */
54  
55 #endif
56
57