git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5835 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -56,7 +56,7 @@ ComputeTempRegion::ComputeTempRegion(LAMMPS *lmp, int narg, char **arg) :
|
||||
ComputeTempRegion::~ComputeTempRegion()
|
||||
{
|
||||
delete [] idregion;
|
||||
memory->destroy_2d_double_array(vbiasall);
|
||||
memory->destroy(vbiasall);
|
||||
delete [] vector;
|
||||
}
|
||||
|
||||
@ -190,10 +190,9 @@ void ComputeTempRegion::remove_bias_all()
|
||||
int nlocal = atom->nlocal;
|
||||
|
||||
if (nlocal > maxbias) {
|
||||
memory->destroy_2d_double_array(vbiasall);
|
||||
memory->destroy(vbiasall);
|
||||
maxbias = atom->nmax;
|
||||
vbiasall = memory->create_2d_double_array(maxbias,3,
|
||||
"temp/region:vbiasall");
|
||||
memory->create(vbiasall,maxbias,3,"temp/region:vbiasall");
|
||||
}
|
||||
|
||||
Region *region = domain->regions[iregion];
|
||||
|
||||
Reference in New Issue
Block a user