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

This commit is contained in:
sjplimp 2015-02-13 17:53:37 +00:00
parent 85bae27407
commit db215ba242
1 changed files with 5 additions and 3 deletions

View File

@ -237,12 +237,15 @@ void ComputePropertyChunk::allocate()
memory->destroy(array);
memory->destroy(count_one);
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");
else memory->create(array,maxchunk,nvalues,"property/chunk:array");
if (countflag) {
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;
}
/* ----------------------------------------------------------------------
one method for every keyword compute property/chunk can output
the property is packed into buf starting at n with stride nvalues