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