git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5836 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -114,7 +114,7 @@ ComputeTempProfile::~ComputeTempProfile()
|
||||
{
|
||||
memory->destroy(vbin);
|
||||
memory->destroy(binave);
|
||||
memory->sfree(bin);
|
||||
memory->destroy(bin);
|
||||
memory->destroy(vbiasall);
|
||||
delete [] vector;
|
||||
}
|
||||
@ -408,8 +408,8 @@ void ComputeTempProfile::bin_assign()
|
||||
|
||||
if (atom->nlocal > maxatom) {
|
||||
maxatom = atom->nmax;
|
||||
memory->sfree(bin);
|
||||
bin = (int *) memory->smalloc(maxatom*sizeof(int),"temp/profile:bin");
|
||||
memory->destroy(bin);
|
||||
memory->create(bin,maxatom,"temp/profile:bin");
|
||||
}
|
||||
|
||||
// assign each atom to a bin, accounting for PBC
|
||||
|
||||
Reference in New Issue
Block a user