changed reading hint
[gromacs/adressmacs.git] / include / names.h
blob8a5759720f208c1ac5faf62da36c24ba26df0ae4
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
12 * Copyright (c) 1991-1999
13 * BIOSON Research Institute, Dept. of Biophysical Chemistry
14 * University of Groningen, The Netherlands
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)
21 * Also check out our WWW page:
22 * http://md.chem.rug.nl/~gmx
23 * or e-mail to:
24 * gromacs@chem.rug.nl
26 * And Hey:
27 * Good ROcking Metal Altar for Chronical Sinners
30 #ifndef _names_h
31 #define _names_h
33 static char *SRCID_names_h = "$Id$";
35 #ifdef HAVE_IDENT
36 #ident "@(#) names.h 1.23 5/20/97"
37 #endif /* HAVE_IDENT */
39 #include "typedefs.h"
41 /* All string arrays are NULL terminated, and therefore have an
42 * extra argument (the +1)
43 * these should correspond to names.c and include/types/enums.h
45 extern char *eblock_names[ebNR+1];
46 extern char *eboxtype_names[ebtNR+1];
47 extern char *epcoupl_names[epcNR+1];
48 extern char *ens_names[enNR+1];
49 extern char *ei_names[eiNR+1];
50 extern char *yesno_names[BOOL_NR+1];
51 extern char *bool_names[BOOL_NR+1];
52 extern char *eel_names[eelNR+1];
53 extern char *evdw_names[evdwNR+1];
54 extern char *eshake_names[estNR+1];
55 extern char *ptype_str[eptNR+1];
56 extern char *egrp_nm[egNR+1];
57 extern char *edisre_names[edrNR+1];
58 extern char *edisreweighting_names[edrwNR+1];
59 extern char *enbf_names[eNBF_NR+1];
60 extern char *ecomb_names[eCOMB_NR+1];
61 extern char *gtypes[egcNR+1];
63 #define UNDEFINED "UNDEFINED"
64 #define ENUM_NAME(e,max,names) ((((e)<0)||((e)>=(max)))?UNDEFINED:(names)[e])
66 #define BOOL(e) ENUM_NAME(e,BOOL_NR,bool_names)
67 #define ENS(e) ENUM_NAME(e,enNR,ens_names)
68 #define EI(e) ENUM_NAME(e,eiNR,ei_names)
69 #define EBOXTYPE(e) ENUM_NAME(e,ebtNR,eboxtype_names)
70 #define EPCOUPLTYPE(e) ENUM_NAME(e,epcNR,epcoupl_names)
71 #define EBLOCKS(e) ENUM_NAME(e,ebNR,eblock_names)
72 #define EPARAM(e) ENUM_NAME(e,epNR,eparam_names)
73 #define EELTYPE(e) ENUM_NAME(e,eelNR,eel_names)
74 #define EVDWTYPE(e) ENUM_NAME(e,evdwNR,evdw_names)
75 #define ESHAKETYPE(e) ENUM_NAME(e,estNR,eshake_names)
76 #define EDISRETYPE(e) ENUM_NAME(e,edrNR,edisre_names)
77 #define EDISREWEIGHTING(e) ENUM_NAME(e,edrwNR,edisreweighting_names)
78 #define ENBFNAME(e) ENUM_NAME(e,eNBF_NR,enbf_names)
79 #define ECOMBNAME(e) ENUM_NAME(e,eCOMB_NR,ecomb_names)
81 #endif /* _names_h */