mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1068 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
2b0ee4f443
commit
efcfd882c1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue