diff --git a/src/fix_ave_spatial.cpp b/src/fix_ave_spatial.cpp index 7497e865ce..c73a321d2b 100644 --- a/src/fix_ave_spatial.cpp +++ b/src/fix_ave_spatial.cpp @@ -570,7 +570,6 @@ void FixAveSpatial::end_of_step() int *mask = atom->mask; int nlocal = atom->nlocal; - if (nlocal > maxatomlayer) { maxatomlayer = atom->nmax; memory->sfree(layer); diff --git a/src/variable.h b/src/variable.h index 47f9f5d394..841abb3229 100644 --- a/src/variable.h +++ b/src/variable.h @@ -54,9 +54,9 @@ class Variable : protected Pointers { double value; double *array; int *iarray; - int ivalue1,ivalue2; - int nstride; int type; + int nstride; + int ivalue1,ivalue2; Tree *left,*middle,*right; };