Merge release-5-0 into release-5-1
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 3 Feb 2016 12:06:25 +0000 (13:06 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 3 Feb 2016 12:06:25 +0000 (13:06 +0100)
Change-Id: I12e0bd25b9b114d0977401e8032078d7cfdd78cf

src/gromacs/mdlib/nbnxn_search.c
src/gromacs/mdlib/stat.cpp

index 16fd3b010127634444485d6a7b183a2192331ad9..fa11d6182159474af4a95ed5463b0d607eec12c0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2012,2013,2014,2015, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014,2015,2016, 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.
@@ -2515,6 +2515,9 @@ static void nbnxn_init_pairlist(nbnxn_pairlist_t *nbl,
     nbl->nci         = 0;
     nbl->ci          = NULL;
     nbl->ci_nalloc   = 0;
+    nbl->nsci        = 0;
+    nbl->sci         = NULL;
+    nbl->sci_nalloc  = 0;
     nbl->ncj         = 0;
     nbl->cj          = NULL;
     nbl->cj_nalloc   = 0;
index 97cd398615a0ba7eaeefbbda9113091d7a86513f..8e3e368159d848692df5fce147fb4031b28f62e8 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,2015, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2016, 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.
@@ -151,7 +151,7 @@ void global_stat(FILE *fplog, gmx_global_stat_t gs,
     t_bin     *rb;
     int       *itc0, *itc1;
     int        ie    = 0, ifv = 0, isv = 0, irmsd = 0, imu = 0;
-    int        idedl = 0, idvdll = 0, idvdlnl = 0, iepl = 0, icm = 0, imass = 0, ica = 0, inb = 0;
+    int        idedl = 0, idedlo = 0, idvdll = 0, idvdlnl = 0, iepl = 0, icm = 0, imass = 0, ica = 0, inb = 0;
     int        isig  = -1;
     int        icj   = -1, ici = -1, icx = -1;
     int        inn[egNR];
@@ -217,6 +217,10 @@ void global_stat(FILE *fplog, gmx_global_stat_t gs,
             /* these probably need to be put into one of these categories */
             where();
             idedl = add_binr(rb, 1, &(ekind->dekindl));
+            if (bSumEkinhOld)
+            {
+                idedlo = add_binr(rb, 1, &(ekind->dekindl_old));
+            }
             where();
             ica   = add_binr(rb, 1, &(ekind->cosacc.mvcos));
             where();
@@ -329,6 +333,10 @@ void global_stat(FILE *fplog, gmx_global_stat_t gs,
                 }
             }
             extract_binr(rb, idedl, 1, &(ekind->dekindl));
+            if (bSumEkinhOld)
+            {
+                extract_binr(rb, idedlo, 1, &(ekind->dekindl_old));
+            }
             extract_binr(rb, ica, 1, &(ekind->cosacc.mvcos));
             where();
         }