git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8522 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -337,8 +337,15 @@ void FixGCMC::attempt_deletion()
|
|||||||
ngas*exp(beta*deletion_energy)/(zz*volume)) {
|
ngas*exp(beta*deletion_energy)/(zz*volume)) {
|
||||||
avec->copy(atom->nlocal-1,i,1);
|
avec->copy(atom->nlocal-1,i,1);
|
||||||
atom->nlocal--;
|
atom->nlocal--;
|
||||||
local_gas_list[iwhichlocal] = local_gas_list[ngas_local-1];
|
int *type = atom->type;
|
||||||
ngas_local--;
|
if ((type[i] == ntype) and (local_gas_list[ngas_local-1] == atom->nlocal)) {
|
||||||
|
ngas_local--;
|
||||||
|
} else {
|
||||||
|
ngas_local = 0;
|
||||||
|
for (int i = 0; i < atom->nlocal; i++)
|
||||||
|
if (type[i] == ntype)
|
||||||
|
local_gas_list[ngas_local++] = i;
|
||||||
|
}
|
||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user