3 * This source code is part of
7 * GROningen MAchine for Chemical Simulations
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
33 * GRoups of Organic Molecules in ACtion for Science
40 egcTC
, egcENER
, egcACC
, egcFREEZE
,
41 egcUser1
, egcUser2
, egcVCM
, egcXTC
,
47 char **name
; /* Name of the molecule type */
48 t_atoms atoms
; /* The atoms */
50 t_block cgs
; /* The charge groups */
51 t_blocka excls
; /* The exclusions */
55 int type
; /* The molcule type index in mtop.moltype */
56 int nmol
; /* The number of molecules in this block */
57 int natoms_mol
; /* The number of atoms in one molecule */
58 int nposres_xA
; /* The number of posres coords for top A */
59 rvec
*posres_xA
; /* The posres coords for top A */
60 int nposres_xB
; /* The number of posres coords for top B */
61 rvec
*posres_xB
; /* The posres coords for top B */
65 t_grps grps
[egcNR
]; /* Groups of things */
66 int ngrpname
; /* Number of groupnames */
67 char ***grpname
; /* Names of the groups */
69 unsigned char *grpnr
[egcNR
]; /* Group numbers or NULL */
72 /* This macro gives the group number of group type egc for atom i.
73 * This macro is useful, since the grpnr pointers are NULL
74 * for group types that have all entries 0.
76 #define ggrpnr(groups,egc,i) ((groups)->grpnr[egc] ? (groups)->grpnr[egc][i] : 0)
78 /* The global topology struct, based on molecule types */
80 char **name
; /* Name of the topology */
81 gmx_ffparams_t ffparams
;
83 gmx_moltype_t
*moltype
;
85 gmx_molblock_t
*molblock
;
87 t_atomtypes atomtypes
; /* Atomtype properties */
88 t_block mols
; /* The molecules */
90 t_symtab symtab
; /* The symbol table */
94 /* The mdrun local topology struct, completely written out */
96 t_idef idef
; /* The interaction function definition */
97 t_atomtypes atomtypes
; /* Atomtype properties */
98 t_block cgs
; /* The charge groups */
99 t_blocka excls
; /* The exclusions */
102 /* The old topology struct, completely written out, used in analysis tools */
104 char **name
; /* Name of the topology */
105 t_idef idef
; /* The interaction function definition */
106 t_atoms atoms
; /* The atoms */
107 t_atomtypes atomtypes
; /* Atomtype properties */
108 t_block cgs
; /* The charge groups */
109 t_block mols
; /* The molecules */
110 t_blocka excls
; /* The exclusions */
111 t_symtab symtab
; /* The symbol table */