git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11738 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2014-04-08 17:35:05 +00:00
parent 0b8bc83b4b
commit bf03a003f8

View File

@ -446,10 +446,12 @@ void FixBondCreate::post_integrate()
// increment bondcount, convert atom to new type if limit reached
bondcount[i]++;
if (type[i] == iatomtype)
int oldtype = type[i];
if (type[i] == iatomtype) {
if (bondcount[i] == imaxbond) type[i] = inewtype;
else
} else {
if (bondcount[i] == jmaxbond) type[i] = jnewtype;
}
// count the created bond once