git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1068 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2007-10-22 16:10:55 +00:00
parent 2b0ee4f443
commit efcfd882c1
1 changed files with 2 additions and 1 deletions

View File

@ -214,7 +214,8 @@ double FixAveAtom::memory_usage()
void FixAveAtom::grow_arrays(int nmax)
{
if (size_peratom == 0) {
scalar = (double *) memory->srealloc(scalar,nmax,"fix_ave/atom:scalar");
scalar = (double *) memory->srealloc(scalar,nmax*sizeof(double),
"fix_ave/atom:scalar");
scalar_atom = scalar;
} else {
vector = memory->grow_2d_double_array(vector,nmax,size_peratom,