git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13101 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -237,12 +237,15 @@ void ComputePropertyChunk::allocate()
|
|||||||
memory->destroy(array);
|
memory->destroy(array);
|
||||||
memory->destroy(count_one);
|
memory->destroy(count_one);
|
||||||
memory->destroy(count_all);
|
memory->destroy(count_all);
|
||||||
size_array_rows = maxchunk = nchunk;
|
|
||||||
|
if (nvalues == 1) size_vector = maxchunk = nchunk;
|
||||||
|
else size_array_rows = maxchunk = nchunk;
|
||||||
if (nvalues == 1) memory->create(vector,maxchunk,"property/chunk:vector");
|
if (nvalues == 1) memory->create(vector,maxchunk,"property/chunk:vector");
|
||||||
else memory->create(array,maxchunk,nvalues,"property/chunk:array");
|
else memory->create(array,maxchunk,nvalues,"property/chunk:array");
|
||||||
|
|
||||||
if (countflag) {
|
if (countflag) {
|
||||||
memory->create(count_one,maxchunk,"property/chunk:count_one");
|
memory->create(count_one,maxchunk,"property/chunk:count_one");
|
||||||
memory->create(count_one,maxchunk,"property/chunk:count_all");
|
memory->create(count_all,maxchunk,"property/chunk:count_all");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -257,7 +260,6 @@ double ComputePropertyChunk::memory_usage()
|
|||||||
return bytes;
|
return bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
one method for every keyword compute property/chunk can output
|
one method for every keyword compute property/chunk can output
|
||||||
the property is packed into buf starting at n with stride nvalues
|
the property is packed into buf starting at n with stride nvalues
|
||||||
|
|||||||
Reference in New Issue
Block a user