#include "gromacs/fileio/xvgr.h"
#include "gromacs/math/do_fit.h"
#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/pbcutil/rmpbc.h"
#include "gromacs/utility/fatalerror.h"
#include <config.h>
#endif
-#include <math.h>
#include <assert.h>
+#include <math.h>
+
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
#include "gromacs/math/utilities.h"
#include "txtdump.h"
#include "bondf.h"
-#include "gromacs/utility/smalloc.h"
-#include "gromacs/pbcutil/pbc.h"
#include "ns.h"
#include "macros.h"
#include "names.h"
-#include "gromacs/utility/fatalerror.h"
-#include "gromacs/pbcutil/mshift.h"
#include "disre.h"
#include "orires.h"
#include "force.h"
#include "nonbonded.h"
#include "restcbt.h"
+#include "gromacs/pbcutil/ishift.h"
+#include "gromacs/pbcutil/mshift.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/simd/simd.h"
#include "gromacs/simd/simd_math.h"
#include "gromacs/simd/vector_operations.h"
+#include "gromacs/utility/fatalerror.h"
+#include "gromacs/utility/smalloc.h"
/* Find a better place for this? */
const int cmap_coeff_matrix[] = {
#include "mtop_util.h"
#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/math/vec.h"
#include "gromacs/math/utilities.h"
#include "macros.h"
-#include "gromacs/utility/cstringutil.h"
#include "force.h"
#include "names.h"
#include "force.h"
#include "nonbonded.h"
#include "gromacs/simd/simd.h"
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/pbcutil/pbc.h"
+#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/linearalgebra/nrjac.h"
#include "gromacs/math/do_fit.h"
#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/smalloc.h"
#include <config.h>
#endif
-
#include "typedefs.h"
-#include "gromacs/utility/smalloc.h"
#include "gromacs/math/utilities.h"
#include "gromacs/fileio/confio.h"
#include "macros.h"
-#include "gromacs/random/random.h"
-#include "gromacs/utility/futil.h"
#include "atomprop.h"
#include "names.h"
#include "gromacs/math/vec.h"
-#include "gromacs/utility/fatalerror.h"
-#include "gromacs/commandline/pargs.h"
#include "gromacs/gmxlib/conformation-utilities.h"
#include "addconf.h"
#include "read-conformation.h"
-#include "gromacs/pbcutil/pbc.h"
-#include "gromacs/fileio/xvgr.h"
+#include "gromacs/commandline/pargs.h"
+#include "gromacs/fileio/xvgr.h"
+#include "gromacs/pbcutil/ishift.h"
+#include "gromacs/pbcutil/pbc.h"
+#include "gromacs/random/random.h"
#include "gromacs/utility/cstringutil.h"
+#include "gromacs/utility/fatalerror.h"
+#include "gromacs/utility/futil.h"
+#include "gromacs/utility/smalloc.h"
static gmx_bool in_box(t_pbc *pbc, rvec x)
{
#include "types/topology.h"
#include "types/energy.h"
#include "types/inputrec.h"
-#include "types/ishift.h"
#include "types/nrnb.h"
#include "types/nblist.h"
#include "types/nbnxn_pairlist.h"
#define _vsite_h
#include <stdio.h>
+
#include "typedefs.h"
+#include "../pbcutil/ishift.h"
#ifdef __cplusplus
extern "C" {
#include "macros.h"
#include "gromacs/math/vectypes.h"
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/pbcutil/pbc.h"
#include <math.h>
#include <stdio.h>
-#include "gromacs/math/vec.h"
+
#include "constr.h"
+
+#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/ishift.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/smalloc.h"
-#include "gromacs/pbcutil/pbc.h"
typedef struct
{
#include <assert.h>
#include "typedefs.h"
-#include "gromacs/utility/smalloc.h"
-#include "gromacs/utility/fatalerror.h"
#include "network.h"
#include "gromacs/math/vec.h"
#include "domdec.h"
#include "domdec_network.h"
#include "nrnb.h"
-#include "gromacs/pbcutil/pbc.h"
#include "chargegroup.h"
#include "constr.h"
#include "mdatoms.h"
#include "gromacs/fileio/gmxfio.h"
#include "gromacs/fileio/pdbio.h"
#include "gromacs/imd/imd.h"
+#include "gromacs/pbcutil/ishift.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/pulling/pull.h"
#include "gromacs/pulling/pull_rotation.h"
#include "gromacs/swap/swapcoords.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/utility/basenetwork.h"
+#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/gmxmpi.h"
#include "gromacs/utility/qsort_threadsafe.h"
+#include "gromacs/utility/smalloc.h"
#define DDRANK(dd, rank) (rank)
#define DDMASTERRANK(dd) (dd->masterrank)
#endif
#include <assert.h>
-#include "gromacs/utility/smalloc.h"
#include "gromacs/math/vec.h"
#include "constr.h"
#include "types/commrec.h"
#include "gmx_omp_nthreads.h"
#include "macros.h"
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/utility/fatalerror.h"
+#include "gromacs/utility/smalloc.h"
typedef struct {
int nsend;
#include "nonbonded.h"
#include "names.h"
#include "network.h"
-#include "gromacs/pbcutil/pbc.h"
#include "ns.h"
#include "nrnb.h"
#include "bondf.h"
-#include "gromacs/pbcutil/mshift.h"
#include "txtdump.h"
#include "coulomb.h"
#include "pme.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/ishift.h"
+#include "gromacs/pbcutil/mshift.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/smalloc.h"
#include <config.h>
#endif
+#include <assert.h>
#include <math.h>
#include <string.h>
-#include <assert.h>
+
#include "typedefs.h"
#include "types/commrec.h"
#include "gromacs/math/vec.h"
#include "gromacs/math/utilities.h"
#include "macros.h"
-#include "gromacs/utility/smalloc.h"
#include "macros.h"
-#include "gromacs/utility/fatalerror.h"
#include "gromacs/math/units.h"
#include "force.h"
#include "tables.h"
#include "nonbonded.h"
#include "names.h"
#include "network.h"
-#include "gromacs/pbcutil/pbc.h"
#include "ns.h"
#include "txtdump.h"
#include "coulomb.h"
#include "gmx_detect_hardware.h"
#include "inputrec.h"
+#include "gromacs/pbcutil/ishift.h"
+#include "gromacs/pbcutil/pbc.h"
+#include "gromacs/utility/fatalerror.h"
+#include "gromacs/utility/smalloc.h"
+
#include "types/nbnxn_cuda_types_ext.h"
#include "gpu_utils.h"
#include "nbnxn_cuda_data_mgmt.h"
#include "domdec.h"
#include "network.h"
#include "mtop_util.h"
-#include "gromacs/pbcutil/pbc.h"
#include "nrnb.h"
#include "bondf.h"
#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/pbcutil/mshift.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/gmxmpi.h"
#include "gromacs/utility/smalloc.h"
#include "gmx_omp_nthreads.h"
#include "thread_mpi/atomic.h"
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/utility/gmxomp.h"
#include "gromacs/utility/smalloc.h"
#include "types/simple.h"
#include "types/nbnxn_pairlist.h"
#include "types/nb_verlet.h"
-#include "types/ishift.h"
#include "types/force_flags.h"
#include "../nbnxn_consts.h"
#include "nbnxn_cuda.h"
#include "nbnxn_cuda_data_mgmt.h"
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/utility/cstringutil.h"
#if defined TEXOBJ_SUPPORTED && __CUDA_ARCH__ >= 300
#include "pmalloc_cuda.h"
#include "gpu_utils.h"
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/utility/common.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/fatalerror.h"
*/
#include "gromacs/math/utilities.h"
+#include "gromacs/pbcutil/ishift.h"
/* Note that floating-point constants in CUDA code should be suffixed
* with f (e.g. 0.5f), to stop the compiler producing intermediate
* code that is in double precision.
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2012,2013, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014, 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 <config.h>
#endif
+#include "gromacs/pbcutil/ishift.h"
+
#include "nbnxn_kernel_common.h"
static void
#include <math.h>
#include "types/simple.h"
-#include "gromacs/math/utilities.h"
-#include "gromacs/math/vec.h"
#include "typedefs.h"
#include "force.h"
+
+#include "gromacs/math/utilities.h"
+#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/ishift.h"
+
#include "nbnxn_kernel_gpu_ref.h"
#include "../nbnxn_consts.h"
#include "nbnxn_kernel_common.h"
#include <assert.h>
#include "typedefs.h"
-#include "gromacs/math/vec.h"
-#include "gromacs/utility/smalloc.h"
#include "force.h"
#include "gmx_omp_nthreads.h"
+
+#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/ishift.h"
+#include "gromacs/utility/smalloc.h"
+
#include "nbnxn_kernel_ref.h"
#include "../nbnxn_consts.h"
#include "nbnxn_kernel_common.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.
*/
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/simd/simd.h"
#include "gromacs/simd/simd_math.h"
#include "gromacs/simd/vector_operations.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.
*/
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/simd/simd.h"
#include "gromacs/simd/simd_math.h"
#include "gromacs/simd/vector_operations.h"
#include <string.h>
#include <assert.h>
-#include "gromacs/utility/smalloc.h"
#include "types/commrec.h"
#include "macros.h"
#include "gromacs/math/utilities.h"
#include "gromacs/math/vec.h"
-#include "gromacs/pbcutil/pbc.h"
#include "nbnxn_consts.h"
/* nbnxn_internal.h included gromacs/simd/macros.h */
#include "nbnxn_internal.h"
#include "nrnb.h"
#include "ns.h"
-#include "gromacs/fileio/gmxfio.h"
+#include "gromacs/pbcutil/ishift.h"
+#include "gromacs/pbcutil/pbc.h"
+#include "gromacs/utility/smalloc.h"
#ifdef NBNXN_SEARCH_BB_SIMD4
/* Always use 4-wide SIMD for bounding box calculations */
#include <stdlib.h>
#include <string.h>
-#include "gromacs/utility/smalloc.h"
#include "macros.h"
#include "gromacs/math/utilities.h"
#include "gromacs/math/vec.h"
#include "force.h"
#include "nonbonded.h"
#include "ns.h"
-#include "gromacs/pbcutil/pbc.h"
#include "names.h"
-#include "gromacs/utility/fatalerror.h"
#include "nrnb.h"
#include "txtdump.h"
#include "mtop_util.h"
#include "domdec.h"
#include "adress.h"
+#include "gromacs/pbcutil/ishift.h"
+#include "gromacs/pbcutil/pbc.h"
+#include "gromacs/utility/fatalerror.h"
+#include "gromacs/utility/smalloc.h"
/*
* E X C L U S I O N H A N D L I N G
#endif
#include <math.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
#include "typedefs.h"
#include "types/commrec.h"
#include "macros.h"
-#include "gromacs/utility/smalloc.h"
#include "gromacs/math/units.h"
#include "macros.h"
#include "gromacs/math/vec.h"
#include "gromacs/fileio/confio.h"
#include "names.h"
#include "network.h"
-#include "gromacs/pbcutil/pbc.h"
#include "ns.h"
#include "nrnb.h"
#include "bondf.h"
#include "txtdump.h"
#include "qmmm.h"
-#include <stdio.h>
-#include <string.h>
-#include "gromacs/utility/fatalerror.h"
#include "typedefs.h"
-#include <stdlib.h>
#include "mtop_util.h"
+#include "gromacs/pbcutil/ishift.h"
+#include "gromacs/pbcutil/pbc.h"
+#include "gromacs/utility/fatalerror.h"
+#include "gromacs/utility/smalloc.h"
/* declarations of the interfaces to the QM packages. The _SH indicate
* the QM interfaces can be used for Surface Hopping simulations
#include "force.h"
#include "names.h"
#include "copyrite.h"
-#include "gromacs/pbcutil/pbc.h"
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/pbcutil/mshift.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
#include "typedefs.h"
#include "gromacs/utility/cstringutil.h"
-#include "gromacs/utility/smalloc.h"
#include "names.h"
#include "txtdump.h"
#include "gromacs/pbcutil/pbc.h"
#include "chargegroup.h"
#include "gromacs/math/vec.h"
#include "nrnb.h"
-#include "gromacs/pbcutil/mshift.h"
#include "mdrun.h"
#include "sim_util.h"
#include "update.h"
#include "../gmxlib/nonbonded/nb_free_energy.h"
#include "gromacs/legacyheaders/types/commrec.h"
+#include "gromacs/pbcutil/ishift.h"
+#include "gromacs/pbcutil/mshift.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/timing/walltime_accounting.h"
#include "gromacs/utility/gmxmpi.h"
+#include "gromacs/utility/smalloc.h"
#include "gromacs/essentialdynamics/edsam.h"
#include "gromacs/pulling/pull.h"
#include "gromacs/pulling/pull_rotation.h"
#include "types/commrec.h"
#include "vsite.h"
#include "macros.h"
-#include "gromacs/utility/smalloc.h"
#include "nrnb.h"
#include "gromacs/math/vec.h"
#include "network.h"
-#include "gromacs/pbcutil/mshift.h"
-#include "gromacs/pbcutil/pbc.h"
#include "domdec.h"
#include "mtop_util.h"
#include "gmx_omp_nthreads.h"
+#include "gromacs/pbcutil/ishift.h"
+#include "gromacs/pbcutil/mshift.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/utility/gmxomp.h"
+#include "gromacs/utility/smalloc.h"
/* Routines to send/recieve coordinates and force
* of constructing atoms.
set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${PBCUTIL_SOURCES} PARENT_SCOPE)
set(PBCUTIL_PUBLIC_HEADERS
+ ishift.h
pbc.h
rmpbc.h)
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2010, by the GROMACS development team, led by
+ * Copyright (c) 2010,2014, 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.
*/
-
-
-/* not really neccesary, right now: */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
+#ifndef GMX_PBCUTIL_ISHIFT_H
+#define GMX_PBCUTIL_ISHIFT_H
#define D_BOX_Z 1
#define D_BOX_Y 1
#define IS2Y(iv) ((((iv) / N_BOX_X) % N_BOX_Y) - D_BOX_Y)
#define IS2Z(iv) ((iv) / (N_BOX_X*N_BOX_Y) - D_BOX_Z)
-
-#ifdef __cplusplus
-}
#endif
#include "gromacs/math/utilities.h"
#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/ishift.h"
#include "gromacs/pbcutil/mshift.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/smalloc.h"