corrected potential nbnxn SIMD memory issue
authorBerk Hess <hess@kth.se>
Fri, 15 Nov 2013 14:51:36 +0000 (15:51 +0100)
committerBerk Hess <hess@kth.se>
Fri, 15 Nov 2013 14:59:17 +0000 (15:59 +0100)
A fixed size array on the stack was declared with one element
too few. Probably this never caused trouble with 64-bit builds,
but it might have caused trouble with 32-bit builds.

Change-Id: I4dad0a7a9e80f5d27ac6ee7e4383082db654481a

src/mdlib/nbnxn_kernels/simd_4xn/nbnxn_kernel_simd_4xn_outer.h

index 2fe56cf5b3d007dcbdbde8882e9d5dfa1433ae91..b306733a27daa3d23397797266a7ba1e19052c5a 100644 (file)
     const real *tab_coul_V;
 #endif
     /* Thread-local working buffers for force and potential lookups */
-    int        ti0_array[2*GMX_SIMD_WIDTH_HERE-1], *ti0 = NULL;
-    int        ti1_array[2*GMX_SIMD_WIDTH_HERE-1], *ti1 = NULL;
-    int        ti2_array[2*GMX_SIMD_WIDTH_HERE-1], *ti2 = NULL;
-    int        ti3_array[2*GMX_SIMD_WIDTH_HERE-1], *ti3 = NULL;
+    int         ti0_array[2*GMX_SIMD_WIDTH_HERE], *ti0 = NULL;
+    int         ti1_array[2*GMX_SIMD_WIDTH_HERE], *ti1 = NULL;
+    int         ti2_array[2*GMX_SIMD_WIDTH_HERE], *ti2 = NULL;
+    int         ti3_array[2*GMX_SIMD_WIDTH_HERE], *ti3 = NULL;
 #ifdef CALC_ENERGIES
-    gmx_mm_pr  mhalfsp_S;
+    gmx_mm_pr   mhalfsp_S;
 #endif
 #endif