git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1068 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -214,7 +214,8 @@ double FixAveAtom::memory_usage()
|
|||||||
void FixAveAtom::grow_arrays(int nmax)
|
void FixAveAtom::grow_arrays(int nmax)
|
||||||
{
|
{
|
||||||
if (size_peratom == 0) {
|
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;
|
scalar_atom = scalar;
|
||||||
} else {
|
} else {
|
||||||
vector = memory->grow_2d_double_array(vector,nmax,size_peratom,
|
vector = memory->grow_2d_double_array(vector,nmax,size_peratom,
|
||||||
|
|||||||
Reference in New Issue
Block a user