2 * This file is part of the GROMACS molecular simulation package.
4 * Copyright (c) 2016,2017,2018,2019, by the GROMACS development team, led by
5 * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
6 * and including many others, as listed in the AUTHORS file in the
7 * top-level source directory and at http://www.gromacs.org.
9 * GROMACS is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 2.1
12 * of the License, or (at your option) any later version.
14 * GROMACS is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with GROMACS; if not, see
21 * http://www.gnu.org/licenses, or write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 * If you want to redistribute modifications to GROMACS, please
25 * consider that scientific software is very special. Version
26 * control is crucial - bugs must be traceable. We will be happy to
27 * consider code for inclusion in the official distribution, but
28 * derived work must not be called official GROMACS. Details are found
29 * in the README & COPYING files - if they are missing, get the
30 * official version at http://www.gromacs.org.
32 * To help us fund GROMACS development, we humbly ask that you cite
33 * the research papers on the package. Check out http://www.gromacs.org.
36 /*! \libinternal \file
37 * \brief Contains functions relevant to simulation setup in MD drivers
40 * \ingroup module_domdec
43 #ifndef GMX_DOMDEC_MDSETUP_H
44 #define GMX_DOMDEC_MDSETUP_H
46 struct bonded_threading_t
;
47 struct gmx_localtop_t
;
63 /*! \brief Gets the local shell with domain decomposition
65 * \param[in] cr Communication record
66 * \param[in] md The MD atom data
67 * \param[in,out] shfc The shell/flexible-constraint data
69 void make_local_shells(const t_commrec
*cr
,
73 /*! \brief Sets atom data for several MD algorithms
75 * Most MD algorithms require two different setup calls:
76 * one for initialization and parameter setting and one for atom data setup.
77 * This routine sets the atom data for the (locally available) atoms.
78 * This is called at the start of serial runs and during domain decomposition.
80 * \param[in] cr Communication record
81 * \param[in] ir Input parameter record
82 * \param[in] top_global The global topology
83 * \param[in,out] top The local topology
84 * \param[in,out] fr The force calculation parameter/data record
85 * \param[out] graph The molecular graph, can be NULL
86 * \param[out] mdAtoms The MD atom data
87 * \param[in,out] constr The constraints handler, can be NULL
88 * \param[in,out] vsite The virtual site data, can be NULL
89 * \param[in,out] shellfc The shell/flexible-constraint data, can be NULL
91 void mdAlgorithmsSetupAtomData(const t_commrec
*cr
,
93 const gmx_mtop_t
&top_global
,
97 gmx::MDAtoms
*mdAtoms
,
98 gmx::Constraints
*constr
,
100 gmx_shellfc_t
*shellfc
);