Skip to content
Snippets Groups Projects
Commit efcfd882 authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1068 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 2b0ee4f4
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment