git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5835 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -64,7 +64,7 @@ ComputeImproperLocal::ComputeImproperLocal(LAMMPS *lmp, int narg, char **arg) :
|
||||
ComputeImproperLocal::~ComputeImproperLocal()
|
||||
{
|
||||
memory->sfree(vector);
|
||||
memory->destroy_2d_double_array(array);
|
||||
memory->destroy(array);
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
@ -214,9 +214,8 @@ void ComputeImproperLocal::reallocate(int n)
|
||||
"bond/local:vector");
|
||||
vector_local = vector;
|
||||
} else {
|
||||
memory->destroy_2d_double_array(array);
|
||||
array = memory->create_2d_double_array(nmax,nvalues,
|
||||
"bond/local:array");
|
||||
memory->destroy(array);
|
||||
memory->create(array,nmax,nvalues,"bond/local:array");
|
||||
array_local = array;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user