From 4b78a111356977d7821b9996ff54d0939efc3277 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Fri, 3 Aug 2007 19:43:14 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@772 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/neigh_stencil.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/neigh_stencil.cpp b/src/neigh_stencil.cpp index b14adbb826..89f8895c27 100644 --- a/src/neigh_stencil.cpp +++ b/src/neigh_stencil.cpp @@ -49,6 +49,8 @@ void Neighbor::stencil_allocate(int sx, int sy, int sz) { int i; + // for 2d, sz = 0 + int nmax = (2*sz+1) * (2*sy+1) * (2*sx+1); if (half) {