forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15241 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
29e64df1ba
commit
d291fcb5d9
|
@ -195,9 +195,10 @@ void AtomVecBody::copy(int i, int j, int delflag)
|
|||
// if deleting atom J via delflag and J has bonus data, then delete it
|
||||
|
||||
if (delflag && body[j] >= 0) {
|
||||
icp->put(bonus[body[j]].iindex);
|
||||
dcp->put(bonus[body[j]].dindex);
|
||||
copy_bonus(nlocal_bonus-1,body[j]);
|
||||
int k = body[j];
|
||||
icp->put(bonus[k].iindex);
|
||||
dcp->put(bonus[k].dindex);
|
||||
copy_bonus(nlocal_bonus-1,k);
|
||||
nlocal_bonus--;
|
||||
}
|
||||
|
||||
|
|
|
@ -148,8 +148,10 @@ class MyPoolChunk {
|
|||
}
|
||||
|
||||
// return indexed chunk to pool via free list
|
||||
// index = -1 for no allocated chunk
|
||||
|
||||
void put(int index) {
|
||||
if (index < 0) return;
|
||||
int ipage = index/chunkperpage;
|
||||
int ibin = whichbin[ipage];
|
||||
nchunk--;
|
||||
|
|
Loading…
Reference in New Issue