#include <vec.h>
#include <xvgr.h>
-// FIXME: This kind of trickery should not be necessary...
-#undef min
-#undef max
#include "gromacs/options/globalproperties.h"
#include "gromacs/options/options.h"
#include "gromacs/fatalerror/exceptions.h"
#include "enxio.h"
#include "vec.h"
#include "xdrf.h"
+#include "macros.h"
/* The source code in this file should be thread-safe.
Please keep it that way. */
#include "names.h"
#include "string2.h"
#include "vec.h"
+#include "macros.h"
/* The source code in this file should be thread-safe.
Please keep it that way. */
#include "txtdump.h"
#include "gmx_fatal.h"
#include "names.h"
+#include "macros.h"
/* Skip 0 so we have more chance of detecting if we forgot to call set_pbc. */
enum { epbcdxRECTANGULAR=1, epbcdxTRICLINIC,
#include "txtdump.h"
#include "string2.h"
#include "vec.h"
+#include "macros.h"
int pr_indent(FILE *fp,int n)
#include "symtab.h"
#include "vec.h"
#include "pbc.h"
+#include "macros.h"
#include <string.h>
#ifdef GMX_THREADS
#include "typedefs.h"
#include "smalloc.h"
#include "grompp.h"
+#include "macros.h"
#include "toputil.h"
#include "hackblock.h"
#include "string2.h"
#include "futil.h"
#include "gpp_atomtype.h"
#include "fflibutil.h"
+#include "macros.h"
#define MAXNAME 32
#define OPENDIR '[' /* starting sign for directive */
#include "resall.h"
#include "pgutil.h"
#include "network.h"
+#include "macros.h"
static void copy_atom(t_atoms *atoms1,int a1,t_atoms *atoms2,int a2)
{
#include <stdio.h>
#include "typedefs.h"
-#include "macros.h"
typedef struct gpp_bondatomtype *t_bond_atomtype;
#include "gmxfio.h"
#include "fflibutil.h"
#include "gmx_fatal.h"
+#include "macros.h"
/* There are 11 types of adding hydrogens, numbered from
* 1 thru 11. Each of these has a specific number of
#include "smalloc.h"
#include "vec.h"
#include "string2.h"
+#include "macros.h"
/* these MUST correspond to the enum in hackblock.h */
const char *btsNames[ebtsNR] = { "bonds", "angles", "dihedrals", "impropers", "exclusions", "cmap" };
#include "gmx_fatal.h"
#include "string2.h"
#include "physics.h"
+#include "macros.h"
typedef struct {
t_iatom a[4];
#include <stdio.h>
#include "typedefs.h"
-#include "macros.h"
#include "grompp.h"
#ifdef __cplusplus
#include <stdio.h>
#include "typedefs.h"
-#include "macros.h"
#ifdef __cplusplus
extern "C" {
#include "typedefs.h" /* for real definition only */
-#ifdef __cplusplus
-extern "C" {
-#endif
+/* no extern "C" for this header because it only defines Macros */
/*
* With the macros below you don't
#define C4 c[4]
#define C5 c[5]
+#ifndef __cplusplus
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b) )
#endif
#ifndef even
#define even(a) ( ( (a+1) / 2) == (a / 2) )
#endif
+#else
+#include <algorithm>
+using std::min;
+using std::max;
+#endif
/* This macro calculates the size of a array */
#define asize(a) (sizeof(a)/sizeof((a)[0]))
extern const real TEN;
extern const real TWELVE;
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _macros_h */
#include "maths.h"
#include "typedefs.h"
#include "sysstuff.h"
-#include "macros.h"
#include "gmx_fatal.h"
#include "physics.h"
#include "splitter.h"
#include "mtop_util.h"
#include "gmxfio.h"
+#include "macros.h"
typedef struct gmx_constr {
int ncon_tot; /* The total number of constraints */
#include "gmxfio.h"
#include "gmx_ga2la.h"
#include "gmx_sort.h"
+#include "macros.h"
#ifdef GMX_LIB_MPI
#include <mpi.h>
#include "gmx_fatal.h"
#include "physics.h"
#include "coulomb.h"
+#include "macros.h"
#define TOL 2e-5
#include "gmx_wallcycle.h"
#include "vcm.h"
#include "nrnb.h"
+#include "macros.h"
/* Is the signal in one simulation independent of other simulations? */
gmx_bool gs_simlocal[eglsNR] = { TRUE, FALSE, FALSE, TRUE };
#include "mtop_util.h"
#include "xvgr.h"
#include "gmxfio.h"
+#include "macros.h"
#include "mdebin_bar.h"
#include "gmx_wallcycle.h"
#include "gmx_parallel_3dfft.h"
#include "pdbio.h"
+#include "macros.h"
#if ( !defined(GMX_DOUBLE) && ( defined(GMX_IA32_SSE) || defined(GMX_X86_64_SSE) || defined(GMX_X86_64_SSE2) ) )
#include "gmx_sse2_single.h"
#include "mdrun.h"
#include "gmx_ga2la.h"
#include "copyrite.h"
+#include "macros.h"
static void pull_print_x_grp(FILE *out,gmx_bool bRef,ivec dim,t_pullgrp *pgrp)
{
#include "groupcoord.h"
#include "pull_rotation.h"
#include "gmx_sort.h"
+#include "macros.h"
static char *RotStr = {"Enforced rotation:"};
#include "shellfc.h"
#include "mtop_util.h"
#include "chargegroup.h"
+#include "macros.h"
typedef struct {
#include <config.h>
#endif
+#include <algorithm>
+
#include <math.h>
#include <stdarg.h>
#include <string2.h>
#include <vec.h>
-// FIXME: Should really be in the beginning, but causes compilation errors
-#include <algorithm>
-
#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/selection/indexutil.h"
#include "gromacs/selection/poscalc.h"
#include <config.h>
#endif
+#include <algorithm>
+
#include <smalloc.h>
#include <string2.h>
#include <vec.h>
#include "scanner.h"
#include "selelem.h"
-template <typename T>
-static T min(T a, T b)
-{
- return (a < b) ? a : b;
-}
-
-template <typename T>
-static T max(T a, T b)
-{
- return (a > b) ? a : b;
-}
+using std::min;
+using std::max;
/*!
* \param[in] name Name of the parameter to search.
#include <config.h>
#endif
+#include <algorithm>
+
#include <math.h>
#include <macros.h>
#include <smalloc.h>
#include <vec.h>
-// FIXME: Should really be in the beginning, but causes compilation errors
-#include <algorithm>
-
#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/selection/indexutil.h"
#include "gromacs/selection/position.h"
#include "tpxio.h"
#include "vec.h"
-// FIXME: This kind of hackery should not be necessary
-#undef min
-#undef max
#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/selection/poscalc.h"
#include "gromacs/selection/selectioncollection.h"
#include <pbc.h>
#include <vec.h>
-// FIXME: This kind of hackery should not be necessary
-#undef min
-#undef max
#include "gromacs/analysisdata/analysisdata.h"
#include "gromacs/analysisdata/modules/plot.h"
#include "gromacs/fatalerror/exceptions.h"
#include <pbc.h>
#include <vec.h>
-// FIXME: This kind of hackery should not be necessary
-#undef min
-#undef max
#include "gromacs/analysisdata/analysisdata.h"
#include "gromacs/analysisdata/modules/average.h"
#include "gromacs/analysisdata/modules/plot.h"
#include <stdio.h>
#include "typedefs.h"
-#include "macros.h"
extern void convert_harmonics(int nrmols,t_molinfo mols[],gpp_atomtype_t atype);
#include "gmx_fatal.h"
#include "gpp_atomtype.h"
#include "gpp_tomorse.h"
+#include "macros.h"
typedef struct {
char *ai,*aj;
#include "tpxio.h"
#include "txtdump.h"
#include "membed.h"
+#include "macros.h"
#include "md_openmm.h"
#include "vec.h"
#include "genalg.h"
#include "random.h"
+#include "macros.h"
real mol_dipole(int k0,int k1,rvec x[],real q[])
{
#include "toputil.h"
#include "pdb2top.h"
#include "string2.h"
+#include "macros.h"
static int in_strings(char *key,int nstr,const char **str)
{
#include "index.h"
#include "hizzie.h"
#include "fflibutil.h"
+#include "macros.h"
typedef struct {
#include "specbond.h"
#include "pdb2top.h"
#include "vec.h"
+#include "macros.h"
gmx_bool yesno(void)
{
#include "statutil.h"
#include "typedefs.h"
#include "xvgr.h"
-
+#include "macros.h"
+
static const char *etitles[] = { "E-docked", "Free Energy" };
typedef struct {
#include "index.h"
#include "gmx_statistics.h"
#include "gmx_ana.h"
+#include "macros.h"
#define SQR(x) (pow(x,2.0))
#define EPSI0 (EPSILON0*E_CHARGE*E_CHARGE*AVOGADRO/(KILO*NANO)) /* EPSILON0 in SI units */
#include "tpxio.h"
#include "physics.h"
#include "gmx_ana.h"
+#include "macros.h"
typedef struct {
char *atomname;
#include "physics.h"
#include "random.h"
#include "gmx_ana.h"
+#include "macros.h"
static void rot_conf(t_atoms *atoms,rvec x[],rvec v[],real trans,real angle,
#include "mtop_util.h"
#include "network.h"
#include "main.h"
+#include "macros.h"
/* We use the same defines as in mvdata.c here */
#define block_bc(cr, d) gmx_bcast( sizeof(d), &(d),(cr))
#include "pbc.h"
#include "rmpbc.h"
#include "gmx_ana.h"
+#include "macros.h"
static const double bohr=0.529177249; /* conversion factor to compensate for VMD plugin conversion... */
#include "checkpoint.h"
#include "gmx_ana.h"
#include "names.h"
+#include "macros.h"
#include "names.h"
#include "gmx_random.h"
#include "gmx_ana.h"
+#include "macros.h"
#ifndef HAVE_STRDUP
#define HAVE_STRDUP