Fix malformed CUDA version macro check
[alexxy/gromacs.git] / include / pdb2top.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,2013, 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
39 #ifndef _pdb2top_h
40 #define _pdb2top_h
41 #include "visibility.h"
42 #include "typedefs.h"
43 #include "grompp.h"
44 #include "gpp_atomtype.h"
45 #include "toputil.h"
46 #include "hackblock.h"
47
48 /* this *MUST* correspond to array in pdb2top.c */
49 enum {
50     ehisA, ehisB, ehisH, ehis1, ehisNR
51 };
52 GMX_LIBGMXPREPROCESS_EXPORT
53 extern const char *hh[ehisNR];
54
55 typedef struct {
56     int   res1, res2;
57     char *a1, *a2;
58 } t_ssbond;
59
60 GMX_LIBGMXPREPROCESS_EXPORT
61 void choose_ff(const char *ffsel,
62                char *forcefield, int ff_maxlen,
63                char *ffdir, int ffdir_maxlen);
64 /* Find force fields in the current and libdirs and choose an ff.
65  * If ffsel!=NULL: search for ffsel.
66  * If ffsel==NULL: interactive selection.
67  */
68
69 GMX_LIBGMXPREPROCESS_EXPORT
70 void choose_watermodel(const char *wmsel, const char *ffdir,
71                        char **watermodel);
72 /* Choose, possibly interactively, which water model to include,
73  * based on the wmsel command line option choice and watermodels.dat
74  * in ffdir.
75  */
76
77 GMX_LIBGMXPREPROCESS_EXPORT
78 void get_hackblocks_rtp(t_hackblock **hb, t_restp **restp,
79                         int nrtp, t_restp rtp[],
80                         int nres, t_resinfo *resinfo,
81                         int nterpairs,
82                         t_hackblock **ntdb, t_hackblock **ctdb,
83                         int *rn, int *rc);
84 /* Get the database entries for the nres residues in resinfo
85  * and store them in restp and hb.
86  */
87
88 GMX_LIBGMXPREPROCESS_EXPORT
89 void match_atomnames_with_rtp(t_restp restp[], t_hackblock hb[],
90                               t_atoms *pdba, rvec *x,
91                               gmx_bool bVerbose);
92 /* Check if atom in pdba need to be deleted of renamed due to tdb or hdb.
93  * If renaming involves atoms added wrt to the rtp database,
94  * add these atoms to restp.
95  */
96
97 GMX_LIBGMXPREPROCESS_EXPORT
98 void print_top_comment(FILE *out, const char *filename, const char *generator, const char *ffdir, gmx_bool bITP);
99
100 GMX_LIBGMXPREPROCESS_EXPORT
101 void print_top_header(FILE *out, const char *filename, const char *title, gmx_bool bITP,
102                       const char *ffdir, real mHmult);
103
104 GMX_LIBGMXPREPROCESS_EXPORT
105 void print_top_mols(FILE *out,
106                     const char *title, const char *ffdir, const char *water,
107                     int nincl, char **incls,
108                     int nmol, t_mols *mols);
109
110 GMX_LIBGMXPREPROCESS_EXPORT
111 void write_top(FILE *out, char *pr, char *molname,
112                t_atoms *at, gmx_bool bRTPresname,
113                int bts[], t_params plist[], t_excls excls[],
114                gpp_atomtype_t atype, int *cgnr, int nrexcl);
115 /* NOTE: nrexcl is not the size of *excl! */
116
117
118 GMX_LIBGMXPREPROCESS_EXPORT
119 void pdb2top(FILE *top_file, char *posre_fn, char *molname,
120              t_atoms *atoms, rvec **x,
121              gpp_atomtype_t atype, t_symtab *tab,
122              int nrtp, t_restp rtp[],
123              t_restp *restp, t_hackblock *hb,
124              int nterpairs, t_hackblock **ntdb, t_hackblock **ctdb,
125              gmx_bool bAllowMissing,
126              gmx_bool bVsites, gmx_bool bVsiteAromatics,
127              const char *ff, const char *ffdir,
128              real mHmult,
129              int nssbonds, t_ssbond ssbonds[],
130              real long_bond_dist, real short_bond_dist,
131              gmx_bool bDeuterate, gmx_bool bChargeGroups, gmx_bool bCmap,
132              gmx_bool bRenumRes, gmx_bool bRTPresname);
133 /* Create a topology ! */
134
135 GMX_LIBGMXPREPROCESS_EXPORT
136 void print_sums(t_atoms *atoms, gmx_bool bSystem);
137
138
139 #endif  /* _pdb2top_h */