#include "gromacs/legacyheaders/genborn.h"
#include "gromacs/legacyheaders/gmx_ga2la.h"
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/nrnb.h"
#include "gromacs/mdlib/constr.h"
#include "gromacs/mdlib/forcerec.h"
#include "gromacs/mdlib/mdatoms.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/nb_verlet.h"
#include "gromacs/mdlib/nbnxn_grid.h"
#include "gromacs/mdlib/shellfc.h"
#include "gromacs/fileio/confio.h"
#include "gromacs/fileio/gmxfio.h"
#include "gromacs/fileio/xvgr.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/nrnb.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/legacyheaders/typedefs.h"
-#include "gromacs/legacyheaders/update.h"
#include "gromacs/legacyheaders/types/nrnb.h"
#include "gromacs/linearalgebra/nrjac.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/groupcoord.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/sim_util.h"
+#include "gromacs/mdlib/update.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/topology/mtop_util.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/fileio/enxio.h"
#include "gromacs/fileio/xvgr.h"
#include "gromacs/gmxana/gmx_ana.h"
-#include "gromacs/legacyheaders/mdebin.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/math/units.h"
#include "gromacs/math/utilities.h"
+#include "gromacs/mdlib/mdebin.h"
#include "gromacs/utility/arraysize.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/dir_separator.h"
#include "gromacs/gmxana/gmx_ana.h"
#include "gromacs/gmxana/gstat.h"
#include "gromacs/gmxlib/disre.h"
+#include "gromacs/gmxlib/main.h"
#include "gromacs/legacyheaders/force.h"
-#include "gromacs/legacyheaders/main.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/nrnb.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/math/do_fit.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/mdatoms.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/pbcutil/ishift.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/gmxana/gmx_ana.h"
#include "gromacs/gmxana/gstat.h"
#include "gromacs/legacyheaders/copyrite.h"
-#include "gromacs/legacyheaders/mdebin.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/types/ifunc.h"
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/mdebin.h"
#include "gromacs/topology/mtop_util.h"
#include "gromacs/utility/arraysize.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/fileio/confio.h"
#include "gromacs/gmxana/gmx_ana.h"
#include "gromacs/legacyheaders/force.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/math/utilities.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/random/random.h"
#include "gromacs/topology/index.h"
#include "gromacs/fileio/tpxio.h"
#include "gromacs/gmxana/gmx_ana.h"
#include "gromacs/gmxlib/calcgrid.h"
+#include "gromacs/gmxlib/main.h"
#include "gromacs/gmxlib/readinp.h"
#include "gromacs/legacyheaders/checkpoint.h"
#include "gromacs/legacyheaders/copyrite.h"
-#include "gromacs/legacyheaders/main.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include <algorithm>
+#include "gromacs/gmxlib/main.h"
#include "gromacs/legacyheaders/copyrite.h"
-#include "gromacs/legacyheaders/main.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/types/commrec.h"
*/
#include "gmxpre.h"
-#include "gromacs/legacyheaders/main.h"
+#include "main.h"
#include "config.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 _main_h
-#define _main_h
-
+#ifndef GMX_GMXLIB_MAIN_H
+#define GMX_GMXLIB_MAIN_H
#include <stdio.h>
struct gmx_multisim_t;
-#ifdef __cplusplus
-extern "C" {
-#endif
-
void gmx_log_open(const char *fn, const t_commrec *cr,
gmx_bool bAppendFiles, FILE**);
/* Open the log file, if necessary (nprocs > 1) the logfile name is
* If bParFn is set, the nodeid is appended to the tpx and each output file.
*/
-#ifdef __cplusplus
-}
#endif
-
-#endif /* _main_h */
#include <cmath>
+#include "gromacs/gmxlib/main.h"
#include "gromacs/legacyheaders/copyrite.h"
-#include "gromacs/legacyheaders/main.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/types/commrec.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/types/inputrec.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/groupcoord.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/sim_util.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/timing/wallcycle.h"
#include <string.h>
-#include "gromacs/legacyheaders/main.h"
-#include "gromacs/legacyheaders/mdrun.h"
+#include "gromacs/gmxlib/main.h"
#include "gromacs/legacyheaders/network.h"
-#include "gromacs/legacyheaders/tgroup.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/legacyheaders/types/enums.h"
#include "gromacs/legacyheaders/types/inputrec.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/mdrun.h"
+#include "gromacs/mdlib/tgroup.h"
#include "gromacs/topology/symtab.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/domdec/domdec.h"
#include "gromacs/legacyheaders/copyrite.h"
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/nrnb.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/constr.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/pbcutil/pbc-simd.h"
#include "gromacs/simd/simd.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/txtdump.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/pulling/pull.h"
#include "gromacs/topology/block.h"
#include <algorithm>
#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/txtdump.h"
#include "gromacs/legacyheaders/typedefs.h"
-#include "gromacs/legacyheaders/update.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/legacyheaders/types/energy.h"
#include "gromacs/legacyheaders/types/group.h"
#include "gromacs/legacyheaders/types/nrnb.h"
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/sim_util.h"
+#include "gromacs/mdlib/update.h"
#include "gromacs/random/random.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/fatalerror.h"
/* This file is completely threadsafe - keep it that way! */
#include "gmxpre.h"
-#include "gromacs/legacyheaders/ebin.h"
+#include "ebin.h"
#include <math.h>
#include <string.h>
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2013,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 _ebin_h
-#define _ebin_h
+#ifndef GMX_MDLIB_EBIN_H
+#define GMX_MDLIB_EBIN_H
#include <stdio.h>
#include "gromacs/legacyheaders/types/energy.h"
#include "gromacs/utility/basedefinitions.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
/* This is a running averaging structure ('energy bin') for use during mdrun. */
typedef struct {
int nener;
* If bPrHead than the header is printed.
*/
-#ifdef __cplusplus
-}
#endif
-
-#endif /* _ebin_h */
#include "gromacs/gmxlib/disre.h"
#include "gromacs/gmxlib/orires.h"
#include "gromacs/legacyheaders/force.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/nrnb.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/legacyheaders/typedefs.h"
-#include "gromacs/legacyheaders/update.h"
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/calcmu.h"
#include "gromacs/mdlib/constr.h"
+#include "gromacs/mdlib/mdrun.h"
+#include "gromacs/mdlib/update.h"
#include "gromacs/random/random.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/ewald/pme.h"
#include "gromacs/legacyheaders/genborn.h"
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/nonbonded.h"
#include "gromacs/listed-forces/listed-forces.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/forcerec-threading.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/qmmm.h"
#include "gromacs/pbcutil/ishift.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/legacyheaders/genborn.h"
#include "gromacs/legacyheaders/network.h"
-#include "gromacs/legacyheaders/tgroup.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/vsite.h"
#include "gromacs/legacyheaders/types/force_flags.h"
#include "gromacs/legacyheaders/types/forcerec.h"
+#include "gromacs/mdlib/tgroup.h"
#include "gromacs/timing/wallcycle.h"
struct t_fcdata;
#include "gromacs/domdec/domdec.h"
#include "gromacs/fileio/trx.h"
#include "gromacs/gmxlib/md_logging.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/nrnb.h"
-#include "gromacs/legacyheaders/tgroup.h"
#include "gromacs/legacyheaders/typedefs.h"
-#include "gromacs/legacyheaders/vcm.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/legacyheaders/types/group.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/mdrun_signalling.h"
+#include "gromacs/mdlib/tgroup.h"
+#include "gromacs/mdlib/vcm.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/topology/mtop_util.h"
#include "gromacs/utility/arrayref.h"
#define GMX_MDLIB_MD_SUPPORT_H
#include "gromacs/legacyheaders/typedefs.h"
-#include "gromacs/legacyheaders/vcm.h"
#include "gromacs/mdlib/sim_util.h"
+#include "gromacs/mdlib/vcm.h"
#include "gromacs/timing/wallcycle.h"
struct gmx_constr;
*/
#include "gmxpre.h"
-#include "gromacs/legacyheaders/mdebin.h"
+#include "mdebin.h"
#include <float.h>
#include <stdlib.h>
#include "gromacs/fileio/xvgr.h"
#include "gromacs/gmxlib/disre.h"
#include "gromacs/gmxlib/orires.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/constr.h"
#include "gromacs/mdlib/mdebin_bar.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/pulling/pull.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 _mdebin_h
-#define _mdebin_h
+#ifndef GMX_MDLIB_MDEBIN_H
+#define GMX_MDLIB_MDEBIN_H
#include <stdio.h>
#include "gromacs/fileio/enxio.h"
-#include "gromacs/legacyheaders/ebin.h"
#include "gromacs/legacyheaders/types/forcerec.h"
#include "gromacs/legacyheaders/types/state.h"
+#include "gromacs/mdlib/ebin.h"
struct gmx_constr;
struct gmx_ekindata_t;
struct gmx_output_env_t;
struct t_fcdata;
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* 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 */
tensor fvir,
tensor vir,
tensor pres,
- struct gmx_ekindata_t *ekind,
+ gmx_ekindata_t *ekind,
rvec mu_tot,
- struct gmx_constr *constr);
+ gmx_constr *constr);
void upd_mdebin_step(t_mdebin *md);
/* Updates only the step count in md */
void restore_energyhistory_from_state(t_mdebin * mdebin,
energyhistory_t * enerhist);
-#ifdef __cplusplus
-}
#endif
-
-#endif /* _mdebin_h */
#include <string.h>
#include "gromacs/fileio/enxio.h"
-#include "gromacs/legacyheaders/mdebin.h"
#include "gromacs/legacyheaders/typedefs.h"
+#include "gromacs/mdlib/mdebin.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/smalloc.h"
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2013,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.
#ifndef _mdebin_bar_h
#define _mdebin_bar_h
-#include "gromacs/legacyheaders/mdebin.h"
+#include "gromacs/mdlib/mdebin.h"
#ifdef __cplusplus
extern "C" {
#include "gromacs/fileio/xvgr.h"
#include "gromacs/legacyheaders/checkpoint.h"
#include "gromacs/legacyheaders/copyrite.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/trajectory_writing.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/utility/fatalerror.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 _mdrun_h
-#define _mdrun_h
+#ifndef GMX_MDLIB_MDRUN_H
+#define GMX_MDLIB_MDRUN_H
#include <stdio.h>
#include <time.h>
struct gmx_constr;
struct gmx_edsam;
struct gmx_enerdata_t;
+struct t_commrec;
struct t_expanded;
struct t_lambda;
struct t_mdatoms;
struct t_simtemp;
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define MD_POLARISE (1<<2)
#define MD_RERUN (1<<4)
#define MD_RERUN_VSITE (1<<5)
void init_parallel(t_commrec *cr, t_inputrec *inputrec,
gmx_mtop_t *mtop);
-void bcast_state(const struct t_commrec *cr, t_state *state);
+void bcast_state(const t_commrec *cr, t_state *state);
/* Broadcasts state from the master to all nodes in cr->mpi_comm_mygroup.
*/
-#ifdef __cplusplus
-}
#endif
-
-#endif /* _mdrun_h */
#include "gromacs/imd/imd.h"
#include "gromacs/legacyheaders/force.h"
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
-#include "gromacs/legacyheaders/mdebin.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/nrnb.h"
#include "gromacs/legacyheaders/ns.h"
-#include "gromacs/legacyheaders/tgroup.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/legacyheaders/typedefs.h"
-#include "gromacs/legacyheaders/update.h"
#include "gromacs/legacyheaders/vsite.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/legacyheaders/types/inputrec.h"
#include "gromacs/mdlib/forcerec.h"
#include "gromacs/mdlib/md_support.h"
#include "gromacs/mdlib/mdatoms.h"
+#include "gromacs/mdlib/mdebin.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/sim_util.h"
+#include "gromacs/mdlib/tgroup.h"
#include "gromacs/mdlib/trajectory_writing.h"
+#include "gromacs/mdlib/update.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/timing/wallcycle.h"
#define _QMMM_h
#include "gromacs/legacyheaders/network.h"
-#include "gromacs/legacyheaders/tgroup.h"
#include "gromacs/legacyheaders/typedefs.h"
+#include "gromacs/mdlib/tgroup.h"
struct t_forcerec;
struct t_QMMMrec;
#include "gromacs/domdec/domdec.h"
#include "gromacs/gmxlib/chargegroup.h"
#include "gromacs/legacyheaders/force.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/constr.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/topology/mtop_util.h"
#include "gromacs/legacyheaders/force.h"
#include "gromacs/legacyheaders/genborn.h"
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/nonbonded.h"
#include "gromacs/legacyheaders/nrnb.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/legacyheaders/typedefs.h"
-#include "gromacs/legacyheaders/update.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/listed-forces/bonded.h"
#include "gromacs/math/units.h"
#include "gromacs/mdlib/calcmu.h"
#include "gromacs/mdlib/constr.h"
#include "gromacs/mdlib/forcerec.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/nb_verlet.h"
#include "gromacs/mdlib/nbnxn_atomdata.h"
#include "gromacs/mdlib/nbnxn_gpu_data_mgmt.h"
#include "gromacs/mdlib/nbnxn_grid.h"
#include "gromacs/mdlib/nbnxn_search.h"
#include "gromacs/mdlib/qmmm.h"
+#include "gromacs/mdlib/update.h"
#include "gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_gpu_ref.h"
#include "gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_ref.h"
#include "gromacs/mdlib/nbnxn_kernels/simd_2xnn/nbnxn_kernel_simd_2xnn.h"
#define GMX_MDLIB_SIM_UTIL_H
#include "gromacs/fileio/enxio.h"
-#include "gromacs/legacyheaders/mdebin.h"
#include "gromacs/legacyheaders/typedefs.h"
-#include "gromacs/legacyheaders/update.h"
-#include "gromacs/legacyheaders/vcm.h"
+#include "gromacs/mdlib/mdebin.h"
#include "gromacs/mdlib/mdoutf.h"
+#include "gromacs/mdlib/update.h"
+#include "gromacs/mdlib/vcm.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/timing/walltime_accounting.h"
#include "gromacs/fileio/xtcio.h"
#include "gromacs/legacyheaders/checkpoint.h"
#include "gromacs/legacyheaders/force.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
-#include "gromacs/legacyheaders/tgroup.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/legacyheaders/typedefs.h"
-#include "gromacs/legacyheaders/vcm.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/legacyheaders/types/group.h"
#include "gromacs/math/utilities.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/constr.h"
#include "gromacs/mdlib/md_support.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/rbin.h"
#include "gromacs/mdlib/sim_util.h"
+#include "gromacs/mdlib/tgroup.h"
+#include "gromacs/mdlib/vcm.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/futil.h"
#include "gromacs/utility/smalloc.h"
/* This file is completely threadsafe - keep it that way! */
#include "gmxpre.h"
-#include "gromacs/legacyheaders/tgroup.h"
+#include "tgroup.h"
#include <math.h>
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
#include "gromacs/legacyheaders/network.h"
-#include "gromacs/legacyheaders/update.h"
#include "gromacs/legacyheaders/types/group.h"
#include "gromacs/legacyheaders/types/mdatom.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/rbin.h"
+#include "gromacs/mdlib/update.h"
#include "gromacs/topology/mtop_util.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/futil.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 _tgroup_h
-#define _tgroup_h
+#ifndef GMX_MDLIB_TGROUP_H
+#define GMX_MDLIB_TGROUP_H
#include "gromacs/legacyheaders/typedefs.h"
struct t_grpopts;
struct t_mdatoms;
-#ifdef __cplusplus
-extern "C" {
-#endif
-
void init_ekindata(FILE *log, gmx_mtop_t *mtop,
- struct t_grpopts *opts,
- struct gmx_ekindata_t *ekind);
+ t_grpopts *opts,
+ gmx_ekindata_t *ekind);
/* Allocate memory and set the grpnr array. */
-void done_ekindata(struct gmx_ekindata_t *ekind);
+void done_ekindata(gmx_ekindata_t *ekind);
/* Free the memory */
-void accumulate_u(struct t_commrec *cr, struct t_grpopts *opts,
- struct gmx_ekindata_t *ekind);
+void accumulate_u(t_commrec *cr, t_grpopts *opts,
+ gmx_ekindata_t *ekind);
/* Communicate subsystem - group velocities and subsystem ekin respectively
* and sum them up. Return them in grps.
*/
-real sum_ekin(struct t_grpopts *opts, struct gmx_ekindata_t *ekind, real *dekindlambda,
+real sum_ekin(t_grpopts *opts, gmx_ekindata_t *ekind, real *dekindlambda,
gmx_bool bEkinFullStep, gmx_bool bScaleEkin);
/* Sum the group ekins into total ekin and calc temp per group,
* return total temperature.
*/
-void update_ekindata(int start, int homenr, struct gmx_ekindata_t *ekind,
- struct t_grpopts *opts, rvec v[], t_mdatoms *md, real lambda);
+void update_ekindata(int start, int homenr, gmx_ekindata_t *ekind,
+ t_grpopts *opts, rvec v[], t_mdatoms *md, real lambda);
/* Do the update of group velocities (if bNEMD) and
* (partial) group ekin.
*/
-#ifdef __cplusplus
-}
#endif
-
-#endif /* _tgroup_h */
#include "gromacs/gmxlib/chargegroup.h"
#include "gromacs/gmxlib/conformation-utilities.h"
#include "gromacs/legacyheaders/force.h"
-#include "gromacs/legacyheaders/mdebin.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/nrnb.h"
#include "gromacs/legacyheaders/ns.h"
-#include "gromacs/legacyheaders/tgroup.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/legacyheaders/typedefs.h"
-#include "gromacs/legacyheaders/update.h"
#include "gromacs/legacyheaders/vsite.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/legacyheaders/types/group.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/constr.h"
#include "gromacs/mdlib/mdatoms.h"
+#include "gromacs/mdlib/mdebin.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/sim_util.h"
+#include "gromacs/mdlib/tgroup.h"
+#include "gromacs/mdlib/update.h"
#include "gromacs/random/random.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/timing/walltime_accounting.h"
#include "trajectory_writing.h"
#include "gromacs/fileio/confio.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/mdoutf.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/sim_util.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/utility/smalloc.h"
#include <stdio.h>
#include "gromacs/fileio/filenm.h"
-#include "gromacs/legacyheaders/mdebin.h"
+#include "gromacs/mdlib/mdebin.h"
#include "gromacs/mdlib/mdoutf.h"
#include "gromacs/timing/wallcycle.h"
*/
#include "gmxpre.h"
-#include "gromacs/legacyheaders/update.h"
+#include "update.h"
#include <math.h>
#include <stdio.h>
#include "gromacs/gmxlib/orires.h"
#include "gromacs/legacyheaders/force.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/tgroup.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/constr.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/sim_util.h"
+#include "gromacs/mdlib/tgroup.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/pulling/pull.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 _update_h
-#define _update_h
+#ifndef GMX_MDLIB_UPDATE_H
+#define GMX_MDLIB_UPDATE_H
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/timing/wallcycle.h"
struct t_mdatoms;
struct t_nrnb;
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* Abstract type for stochastic dynamics */
typedef struct gmx_update *gmx_update_t;
int bUpdatePart,
t_commrec *cr, /* these shouldn't be here -- need to think about it */
t_nrnb *nrnb,
- struct gmx_constr *constr,
+ gmx_constr *constr,
t_idef *idef);
/* Return TRUE if OK, FALSE in case of Shake Error */
-extern gmx_bool update_randomize_velocities(t_inputrec *ir, gmx_int64_t step, const t_commrec *cr, t_mdatoms *md, t_state *state, gmx_update_t upd, struct gmx_constr *constr);
+extern gmx_bool update_randomize_velocities(t_inputrec *ir, gmx_int64_t step, const t_commrec *cr, t_mdatoms *md, t_state *state, gmx_update_t upd, gmx_constr *constr);
void update_constraints(FILE *fplog,
gmx_int64_t step,
t_mdatoms *md,
t_state *state,
gmx_bool bMolPBC,
- struct t_graph *graph,
+ t_graph *graph,
rvec force[], /* forces on home particles */
t_idef *idef,
tensor vir_part,
t_nrnb *nrnb,
gmx_wallcycle_t wcycle,
gmx_update_t upd,
- struct gmx_constr *constr,
+ gmx_constr *constr,
gmx_bool bFirstHalf,
gmx_bool bCalcVir);
rvec vcm, real mass[], real tmass, tensor ekin);
/* Correct ekin for vcm */
-
-#ifdef __cplusplus
-}
#endif
-
-#endif /* _update_h */
/* This file is completely threadsafe - keep it that way! */
#include "gmxpre.h"
-#include "gromacs/legacyheaders/vcm.h"
+#include "vcm.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2013,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 _vcm_h
-#define _vcm_h
+#ifndef GMX_MDLIB_VCM_H
+#define GMX_MDLIB_VCM_H
#include <stdio.h>
#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/real.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct gmx_groups_t;
typedef struct {
char **group_name; /* These two are copies to pointers in */
} t_vcm;
-t_vcm *init_vcm(FILE *fp, struct gmx_groups_t *groups, t_inputrec *ir);
+t_vcm *init_vcm(FILE *fp, gmx_groups_t *groups, t_inputrec *ir);
/* Do a per group center of mass things */
void calc_vcm_grp(int start, int homenr, t_mdatoms *md,
void check_cm_grp(FILE *fp, t_vcm *vcm, t_inputrec *ir, real Temp_Max);
-
-#ifdef __cplusplus
-}
#endif
-
-
-#endif /* _vcm_h */
#include "gromacs/fileio/filenm.h"
#include "gromacs/fileio/gmxfio.h"
+#include "gromacs/gmxlib/main.h"
#include "gromacs/legacyheaders/checkpoint.h"
-#include "gromacs/legacyheaders/main.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/utility/basedefinitions.h"
#include "gromacs/fileio/xvgr.h"
#include "gromacs/legacyheaders/copyrite.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/typedefs.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/legacyheaders/types/mdatom.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/pulling/pull_internal.h"
#include "gromacs/topology/mtop_util.h"
#include "gromacs/fileio/xvgr.h"
#include "gromacs/legacyheaders/copyrite.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/txtdump.h"
#include "gromacs/math/utilities.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/groupcoord.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/sim_util.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/timing/cyclecounter.h"
#include "gromacs/fileio/gmxfio.h"
#include "gromacs/fileio/xvgr.h"
#include "gromacs/legacyheaders/copyrite.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/types/inputrec.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/groupcoord.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/sim_util.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/gmxlib/md_logging.h"
#include "gromacs/gmxlib/sighandler.h"
#include "gromacs/imd/imd.h"
-#include "gromacs/legacyheaders/ebin.h"
#include "gromacs/legacyheaders/force.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/tgroup.h"
#include "gromacs/legacyheaders/typedefs.h"
-#include "gromacs/legacyheaders/update.h"
-#include "gromacs/legacyheaders/vcm.h"
#include "gromacs/legacyheaders/vsite.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/legacyheaders/types/enums.h"
#include "gromacs/math/vectypes.h"
#include "gromacs/mdlib/compute_io.h"
#include "gromacs/mdlib/constr.h"
+#include "gromacs/mdlib/ebin.h"
#include "gromacs/mdlib/forcerec.h"
#include "gromacs/mdlib/md_support.h"
#include "gromacs/mdlib/mdatoms.h"
+#include "gromacs/mdlib/mdebin.h"
#include "gromacs/mdlib/mdoutf.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/mdrun_signalling.h"
#include "gromacs/mdlib/nb_verlet.h"
#include "gromacs/mdlib/nbnxn_gpu_data_mgmt.h"
#include "gromacs/mdlib/shellfc.h"
#include "gromacs/mdlib/sim_util.h"
+#include "gromacs/mdlib/tgroup.h"
#include "gromacs/mdlib/trajectory_writing.h"
+#include "gromacs/mdlib/update.h"
+#include "gromacs/mdlib/vcm.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/pulling/pull.h"
#include "gromacs/commandline/pargs.h"
#include "gromacs/fileio/filenm.h"
+#include "gromacs/gmxlib/main.h"
#include "gromacs/gmxlib/readinp.h"
-#include "gromacs/legacyheaders/main.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/typedefs.h"
#include "gromacs/legacyheaders/types/commrec.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdrunutility/handlerestart.h"
#include "gromacs/utility/arraysize.h"
#include "gromacs/utility/fatalerror.h"
#include <math.h>
#include "gromacs/domdec/domdec.h"
+#include "gromacs/gmxlib/main.h"
#include "gromacs/legacyheaders/copyrite.h"
-#include "gromacs/legacyheaders/main.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/fileio/tpxio.h"
#include "gromacs/fileio/trx.h"
#include "gromacs/gmxlib/disre.h"
+#include "gromacs/gmxlib/main.h"
#include "gromacs/gmxlib/md_logging.h"
#include "gromacs/gmxlib/orires.h"
#include "gromacs/gmxlib/sighandler.h"
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
#include "gromacs/legacyheaders/gmx_thread_affinity.h"
#include "gromacs/legacyheaders/inputrec.h"
-#include "gromacs/legacyheaders/main.h"
-#include "gromacs/legacyheaders/mdrun.h"
#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/network.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/mdlib/integrator.h"
#include "gromacs/mdlib/md_support.h"
#include "gromacs/mdlib/mdatoms.h"
+#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/minimize.h"
#include "gromacs/mdlib/nbnxn_search.h"
#include "gromacs/mdlib/qmmm.h"