#include "gromacs/ewald/pme.h"
#include "gromacs/fileio/gmxfio.h"
#include "gromacs/fileio/pdbio.h"
+#include "gromacs/gmxlib/chargegroup.h"
#include "gromacs/gmxlib/gpu_utils/gpu_utils.h"
#include "gromacs/imd/imd.h"
-#include "gromacs/legacyheaders/chargegroup.h"
#include "gromacs/legacyheaders/force.h"
#include "gromacs/legacyheaders/genborn.h"
#include "gromacs/legacyheaders/gmx_ga2la.h"
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
-#include "gromacs/legacyheaders/mdatoms.h"
#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/math/vectypes.h"
#include "gromacs/mdlib/constr.h"
#include "gromacs/mdlib/forcerec.h"
+#include "gromacs/mdlib/mdatoms.h"
#include "gromacs/mdlib/nb_verlet.h"
#include "gromacs/mdlib/nbnxn_grid.h"
#include "gromacs/mdlib/shellfc.h"
#include "gromacs/domdec/domdec.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
-#include "gromacs/legacyheaders/perf_est.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/perf_est.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/domdec/domdec.h"
#include "gromacs/domdec/domdec_network.h"
-#include "gromacs/legacyheaders/chargegroup.h"
+#include "gromacs/gmxlib/chargegroup.h"
#include "gromacs/legacyheaders/force.h"
#include "gromacs/legacyheaders/gmx_ga2la.h"
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
#include "gromacs/domdec/domdec.h"
#include "gromacs/ewald/pme.h"
+#include "gromacs/gmxlib/sighandler.h"
#include "gromacs/legacyheaders/network.h"
-#include "gromacs/legacyheaders/sighandler.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/math/vec.h"
#include "gromacs/gmxlib/disre.h"
#include "gromacs/legacyheaders/force.h"
#include "gromacs/legacyheaders/main.h"
-#include "gromacs/legacyheaders/mdatoms.h"
#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/nrnb.h"
#include "gromacs/legacyheaders/types/fcdata.h"
#include "gromacs/math/do_fit.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/mdatoms.h"
#include "gromacs/pbcutil/ishift.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/legacyheaders/checkpoint.h"
#include "gromacs/legacyheaders/copyrite.h"
#include "gromacs/legacyheaders/main.h"
-#include "gromacs/legacyheaders/mdatoms.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/readinp.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/checkpoint.h"
#include "gromacs/legacyheaders/inputrec.h"
#include "gromacs/legacyheaders/names.h"
-#include "gromacs/legacyheaders/perf_est.h"
#include "gromacs/legacyheaders/readinp.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/math/utilities.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/perf_est.h"
#include "gromacs/timing/walltime_accounting.h"
#include "gromacs/utility/arraysize.h"
#include "gromacs/utility/baseversion.h"
*/
#include "gmxpre.h"
-#include "gromacs/legacyheaders/chargegroup.h"
+#include "chargegroup.h"
#include <cmath>
* 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_GMXLIB_CHARGEGROUP_H
+#define GMX_GMXLIB_CHARGEGROUP_H
-#ifndef _chargegroup_h
-#define _chargegroup_h
-
-#include <stdio.h>
+#include <cstdio>
#include "gromacs/math/vectypes.h"
#include "gromacs/utility/real.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct gmx_mtop_t;
struct t_block;
-void calc_chargegroup_radii(const struct gmx_mtop_t *mtop, rvec *x,
+void calc_chargegroup_radii(const gmx_mtop_t *mtop, rvec *x,
real *rvdw1, real *rvdw2,
real *rcoul1, real *rcoul2);
/* This routine calculates the two largest charge group radii in x,
* separately for VdW and Coulomb interactions.
*/
-void calc_cgcm(FILE *log, int cg0, int cg1, const struct t_block *cgs,
+void calc_cgcm(FILE *log, int cg0, int cg1, const t_block *cgs,
rvec pos[], rvec cg_cm[]);
/* Routine to compute centers of geometry of charge groups. No periodicity
* is used.
*/
void put_charge_groups_in_box (FILE *log, int cg0, int cg1,
- int ePBC, matrix box, struct t_block *cgs,
+ int ePBC, matrix box, t_block *cgs,
rvec pos[],
rvec cg_cm[]);
/* This routine puts charge groups in the periodic box, keeping them
* together.
*/
-#ifdef __cplusplus
-}
#endif
-
-#endif /* _chargegroup_h */
*/
#include "gmxpre.h"
-#include "gromacs/legacyheaders/sighandler.h"
+#include "sighandler.h"
#include "config.h"
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2010,2014, by the GROMACS development team, led by
+ * Copyright (c) 2010,2014,2015, 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.
* 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 _sighandler_h
-#define _sighandler_h
+#ifndef GMX_GMXLIB_SIGHANDLER_H
+#define GMX_GMXLIB_SIGHANDLER_H
#include <signal.h>
#include "gromacs/utility/basedefinitions.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* NOTE: the terminology is:
incoming signals (provided by the operating system, or transmitted from
other nodes) lead to stop conditions. These stop conditions should be
only returns TRUE once for a single signal. */
gmx_bool gmx_got_usr_signal(void);
-
-#ifdef __cplusplus
-}
#endif
-
-
-#endif /* _sighandler_h */
*/
#include "gmxpre.h"
-#include "gromacs/legacyheaders/splitter.h"
+#include "splitter.h"
#include <cstdlib>
#include <cstring>
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2010,2014, by the GROMACS development team, led by
+ * Copyright (c) 2010,2014,2015, 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.
* 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_GMXLIB_SPLITTER_H
+#define GMX_GMXLIB_SPLITTER_H
-#ifndef _splitter_h
-#define _splitter_h
-
-#include <stdio.h>
+#include <cstdio>
#include "gromacs/utility/basedefinitions.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct t_blocka;
struct t_idef;
void gen_sblocks(FILE *fp, int at_start, int at_end,
- struct t_idef *idef, struct t_blocka *sblock,
+ t_idef *idef, t_blocka *sblock,
gmx_bool bSettle);
/* Generate shake blocks from the constraint list. Set bSettle to yes for shake
* blocks including settles. You normally do not want this.
*/
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "gromacs/fileio/trx.h"
#include "gromacs/fileio/trxio.h"
#include "gromacs/gmxlib/calcgrid.h"
+#include "gromacs/gmxlib/splitter.h"
#include "gromacs/gmxpreprocess/add_par.h"
#include "gromacs/gmxpreprocess/convparm.h"
#include "gromacs/gmxpreprocess/gen_maxwell_velocities.h"
#include "gromacs/imd/imd.h"
#include "gromacs/legacyheaders/genborn.h"
#include "gromacs/legacyheaders/names.h"
-#include "gromacs/legacyheaders/perf_est.h"
-#include "gromacs/legacyheaders/splitter.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/legacyheaders/warninp.h"
#include "gromacs/legacyheaders/types/ifunc.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/calc_verletbuf.h"
#include "gromacs/mdlib/compute_io.h"
+#include "gromacs/mdlib/perf_est.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/random/random.h"
#include "gromacs/topology/mtop_util.h"
#include <algorithm>
+#include "gromacs/gmxlib/chargegroup.h"
#include "gromacs/gmxpreprocess/toputil.h"
-#include "gromacs/legacyheaders/chargegroup.h"
#include "gromacs/legacyheaders/inputrec.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include <string.h>
#include "gromacs/gmxpreprocess/readir.h"
-#include "gromacs/legacyheaders/mdatoms.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/readinp.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/mdatoms.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/pulling/pull.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/fileio/confio.h"
#include "gromacs/fileio/gmxfio.h"
#include "gromacs/fileio/xvgr.h"
+#include "gromacs/gmxlib/sighandler.h"
#include "gromacs/imd/imdsocket.h"
#include "gromacs/legacyheaders/gmx_ga2la.h"
#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
-#include "gromacs/legacyheaders/sighandler.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/groupcoord.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/fileio/confio.h"
#include "gromacs/fileio/gmxfio.h"
#include "gromacs/fileio/pdbio.h"
+#include "gromacs/gmxlib/splitter.h"
#include "gromacs/legacyheaders/copyrite.h"
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/nrnb.h"
-#include "gromacs/legacyheaders/splitter.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/math/vec.h"
#include "gromacs/fileio/confio.h"
#include "gromacs/fileio/gmxfio.h"
#include "gromacs/fileio/xtcio.h"
+#include "gromacs/gmxlib/chargegroup.h"
#include "gromacs/gmxlib/disre.h"
#include "gromacs/gmxlib/orires.h"
-#include "gromacs/legacyheaders/chargegroup.h"
#include "gromacs/legacyheaders/force.h"
-#include "gromacs/legacyheaders/mdatoms.h"
#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
*/
#include "gmxpre.h"
+#include "mdatoms.h"
+
#include <math.h>
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
-#include "gromacs/legacyheaders/mdatoms.h"
#include "gromacs/legacyheaders/qmmm.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/topology/mtop_util.h"
* 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_MDLIB_MDATOMS_H
+#define GMX_MDLIB_MDATOMS_H
-#ifndef _mdatoms_h
-#define _mdatoms_h
-
-#include <stdio.h>
+#include <cstdio>
#include "gromacs/legacyheaders/types/inputrec.h"
#include "gromacs/legacyheaders/types/mdatom.h"
#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/real.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct gmx_mtop_t;
-t_mdatoms *init_mdatoms(FILE *fp, const struct gmx_mtop_t *mtop, gmx_bool bFreeEnergy);
+t_mdatoms *init_mdatoms(FILE *fp, const gmx_mtop_t *mtop, gmx_bool bFreeEnergy);
-void atoms2md(const struct gmx_mtop_t *mtop, const t_inputrec *ir,
+void atoms2md(const gmx_mtop_t *mtop, const t_inputrec *ir,
int nindex, const int *index,
int homenr,
t_mdatoms *md);
void update_mdatoms(t_mdatoms *md, real lambda);
/* (Re)set all the mass parameters */
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
#include "gromacs/legacyheaders/md_logging.h"
#include "gromacs/legacyheaders/md_support.h"
-#include "gromacs/legacyheaders/mdatoms.h"
#include "gromacs/legacyheaders/mdebin.h"
#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/constr.h"
#include "gromacs/mdlib/forcerec.h"
+#include "gromacs/mdlib/mdatoms.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/timing/wallcycle.h"
*/
#include "gmxpre.h"
-#include "gromacs/legacyheaders/perf_est.h"
+#include "perf_est.h"
#include <cmath>
* 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 _perf_est_h
-#define _perf_est_h
+#ifndef GMX_MDLIB_PERF_EST_H
+#define GMX_MDLIB_PERF_EST_H
#include "gromacs/legacyheaders/types/inputrec.h"
#include "gromacs/math/vectypes.h"
#include "gromacs/utility/basedefinitions.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct gmx_mtop_t;
-int n_bonded_dx(const struct gmx_mtop_t *mtop, gmx_bool bExcl);
+int n_bonded_dx(const gmx_mtop_t *mtop, gmx_bool bExcl);
/* Returns the number of pbc_rvec_sub calls required for bonded interactions.
* This number is also roughly proportional to the computational cost.
*/
-float pme_load_estimate(const struct gmx_mtop_t *mtop, const t_inputrec *ir,
+float pme_load_estimate(const gmx_mtop_t *mtop, const t_inputrec *ir,
matrix box);
/* Returns an estimate for the relative load of the PME mesh calculation
* in the total force calculation.
* This estimate is reasonable for recent Intel and AMD x86_64 CPUs.
*/
-#ifdef __cplusplus
-}
#endif
-
-#endif /* _perf_est_h */
/* This file is completely threadsafe - keep it that way! */
#include "gmxpre.h"
-#include "gromacs/legacyheaders/rbin.h"
+#include "rbin.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/typedefs.h"
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2010,2014, by the GROMACS development team, led by
+ * Copyright (c) 2010,2014,2015, 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.
* 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 _rbin_h
-#define _rbin_h
+#ifndef GMX_MDLIB_RBIN_H
+#define GMX_MDLIB_RBIN_H
#include "gromacs/utility/real.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct t_commrec;
typedef struct {
void extract_bind(t_bin *b, int index, int nr, double r[]);
/* Extract values from the bin, starting from index (see add_bin) */
-#ifdef __cplusplus
-}
#endif
-
-#endif /* _rbin_h */
#include <algorithm>
#include "gromacs/domdec/domdec.h"
-#include "gromacs/legacyheaders/chargegroup.h"
+#include "gromacs/gmxlib/chargegroup.h"
#include "gromacs/legacyheaders/force.h"
-#include "gromacs/legacyheaders/mdatoms.h"
#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/domdec/domdec.h"
#include "gromacs/essentialdynamics/edsam.h"
#include "gromacs/ewald/pme.h"
+#include "gromacs/gmxlib/chargegroup.h"
#include "gromacs/gmxlib/disre.h"
#include "gromacs/gmxlib/orires.h"
#include "gromacs/gmxlib/nonbonded/nb_free_energy.h"
#include "gromacs/gmxlib/nonbonded/nb_kernel.h"
#include "gromacs/imd/imd.h"
-#include "gromacs/legacyheaders/chargegroup.h"
#include "gromacs/legacyheaders/copyrite.h"
#include "gromacs/legacyheaders/force.h"
#include "gromacs/legacyheaders/genborn.h"
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
-#include "gromacs/legacyheaders/mdatoms.h"
#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
-#include "gromacs/legacyheaders/rbin.h"
#include "gromacs/legacyheaders/sim_util.h"
#include "gromacs/legacyheaders/tgroup.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/math/utilities.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/constr.h"
+#include "gromacs/mdlib/rbin.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/futil.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
#include "gromacs/legacyheaders/network.h"
-#include "gromacs/legacyheaders/rbin.h"
#include "gromacs/legacyheaders/update.h"
#include "gromacs/legacyheaders/types/group.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/rbin.h"
#include "gromacs/topology/mtop_util.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/futil.h"
#include "gromacs/fileio/trx.h"
#include "gromacs/fileio/trxio.h"
#include "gromacs/fileio/xvgr.h"
+#include "gromacs/gmxlib/chargegroup.h"
#include "gromacs/gmxlib/conformation-utilities.h"
-#include "gromacs/legacyheaders/chargegroup.h"
#include "gromacs/legacyheaders/force.h"
-#include "gromacs/legacyheaders/mdatoms.h"
#include "gromacs/legacyheaders/mdebin.h"
#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/constr.h"
+#include "gromacs/mdlib/mdatoms.h"
#include "gromacs/random/random.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/timing/walltime_accounting.h"
#include "gromacs/fileio/trajectory_writing.h"
#include "gromacs/fileio/trx.h"
#include "gromacs/fileio/trxio.h"
+#include "gromacs/gmxlib/sighandler.h"
#include "gromacs/imd/imd.h"
#include "gromacs/legacyheaders/ebin.h"
#include "gromacs/legacyheaders/force.h"
#include "gromacs/legacyheaders/md_logging.h"
#include "gromacs/legacyheaders/md_support.h"
-#include "gromacs/legacyheaders/mdatoms.h"
#include "gromacs/legacyheaders/mdebin.h"
#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/nrnb.h"
#include "gromacs/legacyheaders/ns.h"
-#include "gromacs/legacyheaders/sighandler.h"
#include "gromacs/legacyheaders/sim_util.h"
#include "gromacs/legacyheaders/tgroup.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/mdlib/compute_io.h"
#include "gromacs/mdlib/constr.h"
#include "gromacs/mdlib/forcerec.h"
+#include "gromacs/mdlib/mdatoms.h"
#include "gromacs/mdlib/mdrun_signalling.h"
#include "gromacs/mdlib/nb_verlet.h"
#include "gromacs/mdlib/nbnxn_gpu_data_mgmt.h"
#include "gromacs/fileio/trx.h"
#include "gromacs/gmxlib/disre.h"
#include "gromacs/gmxlib/orires.h"
+#include "gromacs/gmxlib/sighandler.h"
#include "gromacs/gmxlib/gpu_utils/gpu_utils.h"
#include "gromacs/legacyheaders/checkpoint.h"
#include "gromacs/legacyheaders/copyrite.h"
#include "gromacs/legacyheaders/main.h"
#include "gromacs/legacyheaders/md_logging.h"
#include "gromacs/legacyheaders/md_support.h"
-#include "gromacs/legacyheaders/mdatoms.h"
#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/qmmm.h"
-#include "gromacs/legacyheaders/sighandler.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/math/calculate-ewald-splitting-coefficient.h"
#include "gromacs/mdlib/constr.h"
#include "gromacs/mdlib/forcerec.h"
#include "gromacs/mdlib/integrator.h"
+#include "gromacs/mdlib/mdatoms.h"
#include "gromacs/mdlib/minimize.h"
#include "gromacs/mdlib/nbnxn_search.h"
#include "gromacs/mdlib/tpi.h"