#include "gromacs/gmxlib/network.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/forcerec.h"
+#include "gromacs/mdtypes/enerdata.h"
#include "gromacs/mdtypes/forceoutput.h"
#include "gromacs/mdtypes/iforceprovider.h"
#include "gromacs/mdtypes/imdmodule.h"
#include "gromacs/math/functions.h"
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
-#include "gromacs/mdtypes/forcerec.h"
+#include "gromacs/mdlib/mdebin.h"
+#include "gromacs/mdtypes/enerdata.h"
#include "gromacs/mdtypes/md_enums.h"
#include "gromacs/trajectory/energyframe.h"
#include "gromacs/utility/arraysize.h"
#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/mdatom.h"
#include "gromacs/mdtypes/nblist.h"
-#include "gromacs/topology/block.h"
#include "gromacs/utility/real.h"
#ifdef __cplusplus
#define gmx_inline inline
#endif
+struct t_blocka;
+
/* Structure to collect kernel data not available in forcerec or mdatoms structures.
* This is only used inside the nonbonded module.
*/
typedef struct
{
- int flags;
- const t_blocka *exclusions;
- real * lambda;
- real * dvdl;
+ int flags;
+ const struct t_blocka *exclusions;
+ real *lambda;
+ real *dvdl;
/* pointers to tables */
t_forcetable * table_elec;
#include "gromacs/gmxlib/nrnb.h"
#include "gromacs/math/functions.h"
+#include "gromacs/topology/block.h"
#include "gromacs/utility/real.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/listed-forces/bonded.h"
#include "gromacs/math/utilities.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdtypes/enerdata.h"
#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/md_enums.h"
#include "gromacs/mdtypes/mdatom.h"
#include "gromacs/gmxlib/nrnb.h"
#include "gromacs/math/vectypes.h"
-#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/mdatom.h"
#include "gromacs/mdtypes/nblist.h"
#include "gromacs/topology/block.h"
#include "gromacs/utility/basedefinitions.h"
+struct gmx_grppairener_t;
+struct t_forcerec;
+
void
gmx_nonbonded_setup(t_forcerec *fr,
gmx_bool bGenericKernelOnly);
#define GMX_LISTED_FORCES_LISTED_INTERNAL_H
#include "gromacs/math/vectypes.h"
-#include "gromacs/mdtypes/forcerec.h"
+#include "gromacs/mdtypes/enerdata.h"
#include "gromacs/topology/idef.h"
#include "gromacs/topology/ifunc.h"
#include "gromacs/utility/bitmask.h"
#define GMX_LISTED_FORCES_PAIRS_H
#include "gromacs/math/vec.h"
-#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/mdatom.h"
#include "gromacs/topology/ifunc.h"
#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/real.h"
+struct gmx_grppairener_t;
+struct t_forcerec;
struct t_graph;
struct t_pbc;
#include "gromacs/gmxlib/nrnb.h"
#include "gromacs/math/functions.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdtypes/enerdata.h"
#include "gromacs/mdtypes/forceoutput.h"
#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/mdlib/constr.h"
#include "gromacs/mdlib/force.h"
#include "gromacs/mdlib/update.h"
+#include "gromacs/mdtypes/enerdata.h"
#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/mdtypes/md_enums.h"
#include "gromacs/mdlib/rf_util.h"
#include "gromacs/mdlib/wall.h"
#include "gromacs/mdtypes/commrec.h"
+#include "gromacs/mdtypes/enerdata.h"
#include "gromacs/mdtypes/forceoutput.h"
+#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/mdtypes/md_enums.h"
#include "gromacs/pbcutil/ishift.h"
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2014,2015, by the GROMACS development team, led by
+ * Copyright (c) 2014,2015,2018, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
#ifndef GMX_MDLIB_FORCEREC_THREADING_H
#define GMX_MDLIB_FORCEREC_THREADING_H
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include "gromacs/math/vectypes.h"
+#include "gromacs/mdtypes/md_enums.h"
struct ewald_corr_thread_t {
real Vcorr_q;
tensor vir_lj;
};
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "nbnxn_gpu_jit_support.h"
-const char *egrp_nm[egNR+1] = {
- "Coul-SR", "LJ-SR", "Buck-SR",
- "Coul-14", "LJ-14", nullptr
-};
-
t_forcerec *mk_forcerec(void)
{
t_forcerec *fr;
#include "gromacs/mdtypes/commrec.h"
#include "gromacs/mdtypes/df_history.h"
#include "gromacs/mdtypes/energyhistory.h"
+#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/group.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/mdtypes/md_enums.h"
#define NBOXS asize(boxs_nm)
#define NTRICLBOXS asize(tricl_boxs_nm)
+const char *egrp_nm[egNR+1] = {
+ "Coul-SR", "LJ-SR", "Buck-SR",
+ "Coul-14", "LJ-14", nullptr
+};
+
t_mdebin *init_mdebin(ener_file_t fp_ene,
const gmx_mtop_t *mtop,
const t_inputrec *ir,
#include "gromacs/fileio/enxio.h"
#include "gromacs/mdlib/ebin.h"
-#include "gromacs/mdtypes/forcerec.h"
+#include "gromacs/mdtypes/enerdata.h"
class energyhistory_t;
struct gmx_ekindata_t;
+struct gmx_enerdata_t;
struct gmx_mtop_t;
struct gmx_output_env_t;
struct t_expanded;
class Constraints;
}
+extern const char *egrp_nm[egNR+1];
+
/* The functions & data structures here determine the content for outputting
the .edr file; the file format and actual writing is done with functions
defined in enxio.h */
#include "gromacs/mdlib/nsgrid.h"
#include "gromacs/mdlib/qmmm.h"
#include "gromacs/mdtypes/commrec.h"
+#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/group.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/mdtypes/md_enums.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/main.h"
#include "gromacs/mdtypes/commrec.h"
-#include "gromacs/mdtypes/forcerec.h" // only for gmx_enerdata_t
+#include "gromacs/mdtypes/enerdata.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/mdtypes/md_enums.h"
#include "gromacs/mdtypes/state.h"
#include "gromacs/mdlib/sim_util.h"
#include "gromacs/mdlib/vsite.h"
#include "gromacs/mdtypes/commrec.h"
+#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/mdtypes/md_enums.h"
#include "gromacs/mdtypes/state.h"
#include "gromacs/utility/arrayref.h"
struct gmx_output_env_t;
+struct gmx_pme_t;
struct gmx_update_t;
struct MdrunOptions;
struct nonbonded_verlet_t;
+struct t_forcerec;
struct t_mdatoms;
struct t_nrnb;
#include "gromacs/mdlib/sim_util.h"
#include "gromacs/mdlib/update.h"
#include "gromacs/mdtypes/commrec.h"
+#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/mdtypes/observableshistory.h"
#include "gromacs/mdtypes/state.h"
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015,2016,2017, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2016,2017,2018, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
struct ObservablesHistory;
struct t_commrec;
struct t_filenm;
+struct t_forcerec;
#ifdef __cplusplus
extern "C" {
#include "gromacs/mdlib/update.h"
#include "gromacs/mdlib/vsite.h"
#include "gromacs/mdtypes/commrec.h"
+#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/group.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/mdtypes/md_enums.h"
--- /dev/null
+/*
+ * This file is part of the GROMACS molecular simulation package.
+ *
+ * Copyright (c) 2018, by the GROMACS development team, led by
+ * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
+ * and including many others, as listed in the AUTHORS file in the
+ * top-level source directory and at http://www.gromacs.org.
+ *
+ * GROMACS is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2.1
+ * of the License, or (at your option) any later version.
+ *
+ * GROMACS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with GROMACS; if not, see
+ * http://www.gnu.org/licenses, or write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * If you want to redistribute modifications to GROMACS, please
+ * consider that scientific software is very special. Version
+ * control is crucial - bugs must be traceable. We will be happy to
+ * consider code for inclusion in the official distribution, but
+ * derived work must not be called official GROMACS. Details are found
+ * in the README & COPYING files - if they are missing, get the
+ * official version at http://www.gromacs.org.
+ *
+ * To help us fund GROMACS development, we humbly ask that you cite
+ * the research papers on the package. Check out http://www.gromacs.org.
+ */
+#ifndef GMX_MDTYPES_TYPES_ENERDATA_H
+#define GMX_MDTYPES_TYPES_ENERDATA_H
+
+#include "gromacs/mdtypes/md_enums.h"
+#include "gromacs/topology/idef.h"
+#include "gromacs/utility/real.h"
+
+enum {
+ egCOULSR, egLJSR, egBHAMSR,
+ egCOUL14, egLJ14, egNR
+};
+
+struct gmx_grppairener_t
+{
+ int nener; /* The number of energy group pairs */
+ real *ener[egNR]; /* Energy terms for each pair of groups */
+};
+
+struct gmx_enerdata_t
+{
+ real term[F_NRE]; /* The energies for all different interaction types */
+ struct gmx_grppairener_t grpp;
+ double dvdl_lin[efptNR]; /* Contributions to dvdl with linear lam-dependence */
+ double dvdl_nonlin[efptNR]; /* Idem, but non-linear dependence */
+ int n_lambda;
+ int fep_state; /*current fep state -- just for printing */
+ double *enerpart_lambda; /* Partial energy for lambda and flambda[] */
+ real foreign_term[F_NRE]; /* alternate array for storing foreign lambda energies */
+ struct gmx_grppairener_t foreign_grpp; /* alternate array for storing foreign lambda energies */
+};
+
+#endif
#endif
#include "gromacs/mdtypes/interaction_const.h"
#include "gromacs/mdtypes/md_enums.h"
-#include "gromacs/topology/idef.h"
#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/real.h"
enbvdwNONE, enbvdwLJ, enbvdwBHAM, enbvdwTAB, enbvdwNR
};
-enum {
- egCOULSR, egLJSR, egBHAMSR,
- egCOUL14, egLJ14, egNR
-};
-extern const char *egrp_nm[egNR+1];
-
-struct gmx_grppairener_t
-{
- int nener; /* The number of energy group pairs */
- real *ener[egNR]; /* Energy terms for each pair of groups */
-};
-
-struct gmx_enerdata_t
-{
- real term[F_NRE]; /* The energies for all different interaction types */
- struct gmx_grppairener_t grpp;
- double dvdl_lin[efptNR]; /* Contributions to dvdl with linear lam-dependence */
- double dvdl_nonlin[efptNR]; /* Idem, but non-linear dependence */
- int n_lambda;
- int fep_state; /*current fep state -- just for printing */
- double *enerpart_lambda; /* Partial energy for lambda and flambda[] */
- real foreign_term[F_NRE]; /* alternate array for storing foreign lambda energies */
- struct gmx_grppairener_t foreign_grpp; /* alternate array for storing foreign lambda energies */
-};
-/* The idea is that dvdl terms with linear lambda dependence will be added
- * automatically to enerpart_lambda. Terms with non-linear lambda dependence
- * should explicitly determine the energies at foreign lambda points
- * when n_lambda > 0.
- */
-
struct cginfo_mb_t
{
int cg_start;
#include <stdio.h>
-#ifdef __cplusplus
#include <vector>
-#endif
#include "gromacs/utility/basedefinitions.h"
-#ifdef __cplusplus
#include "gromacs/utility/gmxassert.h"
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
namespace gmx
{
};
} // nsamespace gmx
-#endif // __cplusplus
/* Deprecated, C-style version of BlockRanges */
typedef struct t_block
int nalloc_index; /* The allocation size for index */
} t_block;
-typedef struct t_blocka
+struct t_blocka
{
int nr; /* The number of blocks */
int *index; /* Array of indices in a (dim: nr+1) */
/* to terminate the table */
int nalloc_index; /* The allocation size for index */
int nalloc_a; /* The allocation size for a */
-} t_blocka;
+};
void init_block(t_block *block);
void init_blocka(t_blocka *block);
void pr_block(FILE *fp, int indent, const char *title, const t_block *block, gmx_bool bShowNumbers);
void pr_blocka(FILE *fp, int indent, const char *title, const t_blocka *block, gmx_bool bShowNumbers);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/real.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* check kernel/toppush.c when you change these numbers */
#define MAXATOMLIST 6
#define MAXFORCEPARAM 12
void pr_idef(FILE *fp, int indent, const char *title, const t_idef *idef,
gmx_bool bShowNumbers, gmx_bool bShowParameters);
-#ifdef __cplusplus
-}
-#endif
-
#endif
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2012,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2012,2014,2015,2016,2018, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
#include "gromacs/topology/idef.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct t_fcdata;
struct t_graph;
struct t_mdatoms;
extern const t_interaction_function interaction_function[F_NRE];
/* initialised interaction functions descriptor */
-#ifdef __cplusplus
-}
-#endif
-
#endif
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2010,2014,2017, by the GROMACS development team, led by
+ * Copyright (c) 2010,2014,2017,2018, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
#include <stdio.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct t_symbuf
{
int bufsize;
* to print a header text.
*/
-#ifdef __cplusplus
-}
-#endif
-
#endif