From 2b0ee4f44375ec757df043437cc342c1b955d803 Mon Sep 17 00:00:00 2001
From: sjplimp <sjplimp@f3b2605a-c512-4ea7-a41b-209d697bcdaa>
Date: Fri, 19 Oct 2007 00:48:47 +0000
Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1066
 f3b2605a-c512-4ea7-a41b-209d697bcdaa

---
 src/fix_ave_spatial.cpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/fix_ave_spatial.cpp b/src/fix_ave_spatial.cpp
index e00e3c0861..ba2559aec5 100644
--- a/src/fix_ave_spatial.cpp
+++ b/src/fix_ave_spatial.cpp
@@ -219,9 +219,11 @@ FixAveSpatial::FixAveSpatial(LAMMPS *lmp, int narg, char **arg) :
   // initializations
 
   irepeat = 0;
+  iwindow = window_limit = 0;
+  norm = 0;
   nlayers = maxlayer = 0;
   coord = NULL;
-  count_one = count_many = count_sum = NULL;
+  count_one = count_many = count_sum = count_total = NULL;
   count_list = NULL;
   values_one = values_many = values_sum = values_total = NULL;
   values_list = NULL;
@@ -412,10 +414,10 @@ void FixAveSpatial::end_of_step()
 	count_total[m] = 0.0;
       }
 
-      // only allocate count and values list for ave = RUNNING or WINDOW
+      // only allocate count and values list for ave = WINDOW
       // only happens once since nlayers never changes for these ave settings
       
-      if (ave == RUNNING || ave == WINDOW) {
+      if (ave == WINDOW) {
 	count_list =
 	  memory->create_2d_double_array(nwindow,nlayers,
 					 "ave/spatial:count_list");
-- 
GitLab