Fixed another bug in edge_histo

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14473 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
athomps 2016-01-23 00:09:48 +00:00
parent 34785af4a6
commit ad1d7ffdc7
1 changed files with 2 additions and 1 deletions

View File

@ -305,7 +305,8 @@ void ComputeVoronoi::buildCells()
}
// clear edge statistics
for (i = 0; i <= maxedge; ++i) edge[i]=0;
if ( maxedge > 0 )
for (i = 0; i <= maxedge; ++i) edge[i]=0;
// initialize voro++ container
// preallocates 8 atoms per cell