Fix use of simd.h
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 19 Jan 2015 10:55:35 +0000 (11:55 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 2 Feb 2015 13:04:23 +0000 (14:04 +0100)
TPI correctness check was inactive.

Use of SIMD preprocessor symbols in forcerec.c was OK because it got
simd.h from nbnxn_simd.h, but also fixed the erroneous use of
transitive inclusion of simd.h just in case that helps someone.

Fixes #1673

Change-Id: Iaf42a4ec420139485de3e509662ca0892fa662c5

src/gromacs/mdlib/forcerec.c
src/gromacs/mdlib/tpi.c

index 401f04c0429b1c99f4488921f4a135c4d12091b4..1ec1c2b171b3a282638d0cccbe1d59ec97834ab9 100644 (file)
@@ -3,7 +3,7 @@
  *
  * 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.
@@ -75,6 +75,7 @@
 #include "gmx_omp_nthreads.h"
 #include "gmx_detect_hardware.h"
 #include "inputrec.h"
+#include "gromacs/simd/simd.h"
 
 #include "types/nbnxn_cuda_types_ext.h"
 #include "gpu_utils.h"
index 8eaa88b740e1f3fd82bbb54c96ecbd1f41723d8e..5a584281e0a050e5c23b084c1dc2b68eab2b9f95 100644 (file)
@@ -3,7 +3,7 @@
  *
  * 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.
@@ -70,6 +70,7 @@
 #include "mtop_util.h"
 #include "pme.h"
 #include "gromacs/gmxlib/conformation-utilities.h"
+#include "gromacs/simd/simd.h"
 
 #include "gromacs/fileio/confio.h"
 #include "gromacs/fileio/gmxfio.h"
@@ -672,7 +673,7 @@ double do_tpi(FILE *fplog, t_commrec *cr,
             bEnergyOutOfBounds = FALSE;
 #ifdef GMX_SIMD_X86_SSE2_OR_HIGHER
             /* With SSE the energy can overflow, check for this */
-            if (gmx_mm_check_and_reset_overflow())
+            if (gmx_simd_check_and_reset_overflow())
             {
                 if (debug)
                 {