Update copyright statements and change license to LGPL
[alexxy/gromacs.git] / include / types / nrnb.h
1 /*
2  * This file is part of the GROMACS molecular simulation package.
3  *
4  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
5  * Copyright (c) 2001-2004, The GROMACS development team,
6  * check out http://www.gromacs.org for more information.
7  * Copyright (c) 2012, by the GROMACS development team, led by
8  * David van der Spoel, Berk Hess, Erik Lindahl, and including many
9  * others, as listed in the AUTHORS file in the top-level source
10  * directory and at http://www.gromacs.org.
11  *
12  * GROMACS is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public License
14  * as published by the Free Software Foundation; either version 2.1
15  * of the License, or (at your option) any later version.
16  *
17  * GROMACS is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20  * Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public
23  * License along with GROMACS; if not, see
24  * http://www.gnu.org/licenses, or write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
26  *
27  * If you want to redistribute modifications to GROMACS, please
28  * consider that scientific software is very special. Version
29  * control is crucial - bugs must be traceable. We will be happy to
30  * consider code for inclusion in the official distribution, but
31  * derived work must not be called official GROMACS. Details are found
32  * in the README & COPYING files - if they are missing, get the
33  * official version at http://www.gromacs.org.
34  *
35  * To help us fund GROMACS development, we humbly ask that you cite
36  * the research papers on the package. Check out http://www.gromacs.org.
37  */
38 #ifndef _types_nrnb_h
39 #define _types_nrnb_h
40
41
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 #if 0
46 } /* fixes auto-indentation problems */
47 #endif
48
49
50 #define eNR_NBKERNEL_NONE -1
51
52 enum 
53 {
54     eNR_NBKERNEL_VDW_VF,
55     eNR_NBKERNEL_VDW_F,
56     eNR_NBKERNEL_ELEC_VF,
57     eNR_NBKERNEL_ELEC_F,
58     eNR_NBKERNEL_ELEC_W3_VF,
59     eNR_NBKERNEL_ELEC_W3_F,
60     eNR_NBKERNEL_ELEC_W3W3_VF,
61     eNR_NBKERNEL_ELEC_W3W3_F,
62     eNR_NBKERNEL_ELEC_W4_VF,
63     eNR_NBKERNEL_ELEC_W4_F,
64     eNR_NBKERNEL_ELEC_W4W4_VF,
65     eNR_NBKERNEL_ELEC_W4W4_F,
66     eNR_NBKERNEL_ELEC_VDW_VF,
67     eNR_NBKERNEL_ELEC_VDW_F,
68     eNR_NBKERNEL_ELEC_VDW_W3_VF,
69     eNR_NBKERNEL_ELEC_VDW_W3_F,
70     eNR_NBKERNEL_ELEC_VDW_W3W3_VF,
71     eNR_NBKERNEL_ELEC_VDW_W3W3_F,
72     eNR_NBKERNEL_ELEC_VDW_W4_VF,
73     eNR_NBKERNEL_ELEC_VDW_W4_F,
74     eNR_NBKERNEL_ELEC_VDW_W4W4_VF,
75     eNR_NBKERNEL_ELEC_VDW_W4W4_F,
76
77     eNR_NBKERNEL_NR,  /* Total number of interaction-specific kernel entries */
78
79     eNR_NBKERNEL_GENERIC = eNR_NBKERNEL_NR, /* Reuse number; KERNEL_NR is not an entry itself */
80     eNR_NBKERNEL_FREE_ENERGY,               /* Add other generic kernels _before_ the free energy one */
81
82     eNR_NBKERNEL_ALLVSALL,
83     eNR_NBKERNEL_ALLVSALLGB,
84
85     eNR_NBNXN_DIST2,
86     eNR_NBNXN_LJ_RF,    eNR_NBNXN_LJ_RF_E,
87     eNR_NBNXN_LJ_TAB,   eNR_NBNXN_LJ_TAB_E,
88     eNR_NBNXN_LJ_EWALD, eNR_NBNXN_LJ_EWALD_E,
89     eNR_NBNXN_LJ,       eNR_NBNXN_LJ_E,
90     eNR_NBNXN_RF,       eNR_NBNXN_RF_E,
91     eNR_NBNXN_TAB,      eNR_NBNXN_TAB_E,
92     eNR_NBNXN_EWALD,    eNR_NBNXN_EWALD_E,
93     eNR_NB14,
94     eNR_BORN_RADII_STILL,     eNR_BORN_RADII_HCT_OBC,
95     eNR_BORN_CHAINRULE,
96     eNR_BORN_AVA_RADII_STILL, eNR_BORN_AVA_RADII_HCT_OBC,
97     eNR_BORN_AVA_CHAINRULE,
98     eNR_WEIGHTS,              eNR_SPREADQ,              eNR_SPREADQBSP,
99     eNR_GATHERF,              eNR_GATHERFBSP,           eNR_FFT,
100     eNR_CONV,                 eNR_SOLVEPME,eNR_NS,      eNR_RESETX,
101     eNR_SHIFTX,               eNR_CGCM,                 eNR_FSUM,
102     eNR_BONDS,                eNR_G96BONDS,             eNR_FENEBONDS,
103     eNR_TABBONDS,             eNR_RESTRBONDS,           eNR_LINEAR_ANGLES,
104     eNR_ANGLES,               eNR_G96ANGLES,            eNR_QANGLES,
105     eNR_TABANGLES,            eNR_PROPER,               eNR_IMPROPER,
106     eNR_RB,                   eNR_FOURDIH,              eNR_TABDIHS,
107     eNR_DISRES,               eNR_ORIRES,               eNR_DIHRES,
108     eNR_POSRES,               eNR_ANGRES,               eNR_ANGRESZ,
109     eNR_MORSE,                eNR_CUBICBONDS,           eNR_WALLS,
110     eNR_POLARIZE,             eNR_ANHARM_POL,
111     eNR_WPOL,                 eNR_THOLE,                eNR_VIRIAL,
112     eNR_UPDATE,               eNR_EXTUPDATE,            eNR_STOPCM,
113     eNR_PCOUPL,               eNR_EKIN,                 eNR_LINCS,
114     eNR_LINCSMAT,             eNR_SHAKE,                eNR_CONSTR_V,
115     eNR_SHAKE_RIJ,            eNR_CONSTR_VIR,           eNR_SETTLE,
116     eNR_VSITE2,               eNR_VSITE3,               eNR_VSITE3FD,
117     eNR_VSITE3FAD,            eNR_VSITE3OUT,            eNR_VSITE4FD,
118     eNR_VSITE4FDN,            eNR_VSITEN,               eNR_GB,
119     eNR_CMAP,
120     eNRNB
121 };
122
123
124 typedef struct
125 {
126     double n[eNRNB];
127 }
128 t_nrnb;
129
130
131 typedef struct gmx_wallcycle *gmx_wallcycle_t;
132
133 #ifdef __cplusplus
134 }
135 #endif
136
137 #endif