Split lines with many copyright years
[gromacs.git] / src / gromacs / awh / read_params.h
blob5cdb9000c62275719c22a643a8f9bd0b7033afa7
1 /*
2 * This file is part of the GROMACS molecular simulation package.
4 * Copyright (c) 2013,2014,2015,2016,2017 by the GROMACS development team.
5 * Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
6 * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
7 * and including many others, as listed in the AUTHORS file in the
8 * top-level source directory and at http://www.gromacs.org.
10 * GROMACS is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public License
12 * as published by the Free Software Foundation; either version 2.1
13 * of the License, or (at your option) any later version.
15 * GROMACS is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with GROMACS; if not, see
22 * http://www.gnu.org/licenses, or write to the Free Software Foundation,
23 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 * If you want to redistribute modifications to GROMACS, please
26 * consider that scientific software is very special. Version
27 * control is crucial - bugs must be traceable. We will be happy to
28 * consider code for inclusion in the official distribution, but
29 * derived work must not be called official GROMACS. Details are found
30 * in the README & COPYING files - if they are missing, get the
31 * official version at http://www.gromacs.org.
33 * To help us fund GROMACS development, we humbly ask that you cite
34 * the research papers on the package. Check out http://www.gromacs.org.
37 /*! \libinternal \file
39 * \brief
40 * Declares functions needed for reading, initializing and setting the AWH parameter data types.
42 * \author Viveca Lindahl
43 * \inlibraryapi
44 * \ingroup module_awh
47 #ifndef GMX_AWH_READPARAMS_H
48 #define GMX_AWH_READPARAMS_H
50 #include "gromacs/fileio/readinp.h"
51 #include "gromacs/math/vectypes.h"
53 struct t_grpopts;
54 struct t_inputrec;
55 struct pull_params_t;
56 struct pull_t;
58 namespace gmx
60 struct AwhParams;
62 /*! \brief Allocate, initialize and check the AWH parameters with values from the input file.
64 * \param[in,out] inp Input file entries.
65 * \param[in] inputrec Input parameter struct.
66 * \param[in,out] wi Struct for bookeeping warnings.
67 * \returns AWH parameters.
69 AwhParams* readAndCheckAwhParams(std::vector<t_inpfile>* inp, const t_inputrec* inputrec, warninp_t wi);
72 /*! \brief
73 * Sets AWH parameters that need state parameters such as the box vectors.
75 * \param[in,out] awhParams AWH parameters.
76 * \param[in] pull_params Pull parameters.
77 * \param[in,out] pull_work Pull working struct to register AWH bias in.
78 * \param[in] box Box vectors.
79 * \param[in] ePBC Periodic boundary conditions enum.
80 * \param[in] compressibility Compressibility matrix for pressure coupling, pass all 0 without pressure coupling
81 * \param[in] inputrecGroupOptions Parameters for atom groups.
82 * \param[in,out] wi Struct for bookeeping warnings.
84 * \note This function currently relies on the function set_pull_init to have been called.
86 void setStateDependentAwhParams(AwhParams* awhParams,
87 const pull_params_t* pull_params,
88 pull_t* pull_work,
89 const matrix box,
90 int ePBC,
91 const tensor& compressibility,
92 const t_grpopts* inputrecGroupOptions,
93 warninp_t wi);
95 } // namespace gmx
97 #endif /* GMX_AWH_READPARAMS_H */