Made g_protonate (partially) work.
[gromacs/rigid-bodies.git] / include / names.h
bloba396bdae528985121d18174b644d12bb2439ddc2
1 /*
2 *
3 * This source code is part of
4 *
5 * G R O M A C S
6 *
7 * GROningen MAchine for Chemical Simulations
8 *
9 * VERSION 3.2.0
10 * Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
11 * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
12 * Copyright (c) 2001-2004, The GROMACS development team,
13 * check out http://www.gromacs.org for more information.
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
20 * If you want to redistribute modifications, please consider that
21 * scientific software is very special. Version control is crucial -
22 * bugs must be traceable. We will be happy to consider code for
23 * inclusion in the official distribution, but derived work must not
24 * be called official GROMACS. Details are found in the README & COPYING
25 * files - if they are missing, get the official version at www.gromacs.org.
27 * To help us fund GROMACS development, we humbly ask that you cite
28 * the papers on the package - you can find them in the top README file.
30 * For more info, check our website at http://www.gromacs.org
32 * And Hey:
33 * Gromacs Runs On Most of All Computer Systems
36 #ifndef _names_h
37 #define _names_h
40 #include "typedefs.h"
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
46 /* All string arrays are NULL terminated, and therefore have an
47 * extra argument (the +1)
48 * these should correspond to names.c and include/types/enums.h
50 extern const char *epbc_names[epbcNR+1];
51 extern const char *etcoupl_names[etcNR+1];
52 extern const char *epcoupl_names[epcNR+1];
53 extern const char *epcoupltype_names[epctNR+1];
54 extern const char *erefscaling_names[erscNR+1];
55 extern const char *ens_names[ensNR+1];
56 extern const char *ei_names[eiNR+1];
57 extern const char *yesno_names[BOOL_NR+1];
58 extern const char *bool_names[BOOL_NR+1];
59 extern const char *eel_names[eelNR+1];
60 extern const char *eewg_names[eewgNR+1];
61 extern const char *evdw_names[evdwNR+1];
62 extern const char *econstr_names[econtNR+1];
63 extern const char *ptype_str[eptNR+1];
64 extern const char *egrp_nm[egNR+1];
65 extern const char *edisre_names[edrNR+1];
66 extern const char *edisreweighting_names[edrwNR+1];
67 extern const char *enbf_names[eNBF_NR+1];
68 extern const char *ecomb_names[eCOMB_NR+1];
69 extern const char *gtypes[egcNR+1];
70 extern const char *efep_names[efepNR+1];
71 extern const char *separate_dhdl_file_names[efepNR+1];
72 extern const char *dhdl_derivatives_names[efepNR+1];
73 extern const char *efep_names[efepNR+1];
74 extern const char *esol_names[esolNR+1];
75 extern const char *enlist_names[enlistNR+1];
76 extern const char *edispc_names[edispcNR+1];
77 extern const char *ecm_names[ecmNR+1];
78 extern const char *eann_names[eannNR+1];
79 extern const char *egb_names[egbNR+1];
80 extern const char *eis_names[eisNR+1];
81 extern const char *esa_names[esaNR+1];
82 extern const char *ewt_names[ewtNR+1];
83 extern const char *epull_names[epullNR+1];
84 extern const char *epullg_names[epullgNR+1];
85 extern const char *eQMmethod_names[eQMmethodNR+1];
86 extern const char *eQMbasis_names[eQMbasisNR+1];
87 extern const char *eQMMMscheme_names[eQMMMschemeNR+1];
88 extern const char *eMultentOpt_names[eMultentOptNR+1];
90 #define UNDEFINED "UNDEFINED"
91 #define ENUM_NAME(e,max,names) ((((e)<0)||((e)>=(max)))?UNDEFINED:(names)[e])
93 #define BOOL(e) ENUM_NAME(e,BOOL_NR,bool_names)
94 #define ENS(e) ENUM_NAME(e,ensNR,ens_names)
95 #define EI(e) ENUM_NAME(e,eiNR,ei_names)
96 #define EPBC(e) ENUM_NAME(e,epbcNR,epbc_names)
97 #define ETCOUPLTYPE(e) ENUM_NAME(e,etcNR,etcoupl_names)
98 #define EPCOUPLTYPE(e) ENUM_NAME(e,epcNR,epcoupl_names)
99 #define EPCOUPLTYPETYPE(e) ENUM_NAME(e,epctNR,epcoupltype_names)
100 #define EREFSCALINGTYPE(e) ENUM_NAME(e,erscNR,erefscaling_names)
101 #define EBLOCKS(e) ENUM_NAME(e,ebNR,eblock_names)
102 #define EPARAM(e) ENUM_NAME(e,epNR,eparam_names)
103 #define EELTYPE(e) ENUM_NAME(e,eelNR,eel_names)
104 #define EVDWTYPE(e) ENUM_NAME(e,evdwNR,evdw_names)
105 #define ECONSTRTYPE(e) ENUM_NAME(e,econtNR,econstr_names)
106 #define EDISRETYPE(e) ENUM_NAME(e,edrNR,edisre_names)
107 #define EDISREWEIGHTING(e) ENUM_NAME(e,edrwNR,edisreweighting_names)
108 #define ENBFNAME(e) ENUM_NAME(e,eNBF_NR,enbf_names)
109 #define ECOMBNAME(e) ENUM_NAME(e,eCOMB_NR,ecomb_names)
110 #define EFEPTYPE(e) ENUM_NAME(e,efepNR,efep_names)
111 #define SEPDHDLFILETYPE(e) ENUM_NAME(e,sepdhdlfileNR,separate_dhdl_file_names)
112 #define DHDLDERIVATIVESTYPE(e) ENUM_NAME(e,dhdlderivativesNR,dhdl_derivatives_names)
113 #define ESOLTYPE(e) ENUM_NAME(e,esolNR,esol_names)
114 #define ENLISTTYPE(e) ENUM_NAME(e,enlistNR,enlist_names)
115 #define EDISPCORR(e) ENUM_NAME(e,edispcNR,edispc_names)
116 #define ECOM(e) ENUM_NAME(e,ecmNR,ecm_names)
117 #define EANNEAL(e) ENUM_NAME(e,eannNR,eann_names)
118 #define EGBALGORITHM(e) ENUM_NAME(e,egbNR,egb_names)
119 #define ESAALGORITHM(e) ENUM_NAME(e,esaNR,esa_names)
120 #define EIMPLICITSOL(e) ENUM_NAME(e,eisNR,eis_names)
121 #define EWALLTYPE(e) ENUM_NAME(e,ewtNR,ewt_names)
122 #define EPULLTYPE(e) ENUM_NAME(e,epullNR,epull_names)
123 #define EPULLGEOM(e) ENUM_NAME(e,epullgNR,epullg_names)
124 #define EQMMETHOD(e) ENUM_NAME(e,eQMmethodNR,eQMmethod_names)
125 #define EQMBASIS(e) ENUM_NAME(e,eQMbasisNR,eQMbasis_names)
126 #define EQMMMSCHEME(e) ENUM_NAME(e,eQMMMschemeNR,eQMMMscheme_names)
127 #define EMULTENTOPT(e) ENUM_NAME(e,eMultentOptNR,eMultentOpt_names)
129 #ifdef __cplusplus
131 #endif
133 #endif /* _names_h */