git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11738 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user