Unverified Commit d946c617 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

re-indent code to better match LAMMPS conventions

parent 8fec14f5
Loading
Loading
Loading
Loading
+65 −64
Original line number Diff line number Diff line
@@ -3513,12 +3513,12 @@ void FixBondReact::unpack_reverse_comm(int n, int *list, double *buf)
  if (commflag != 1) {
    for (i = 0; i < n; i++) {
      j = list[i];
      if (closeneigh[rxnID] != 0)
      if (closeneigh[rxnID] != 0) {
        if (buf[m+1] < distsq[j][1]) {
          partner[j] = (tagint) ubuf(buf[m++]).i;
          distsq[j][1] = buf[m++];
        } else m += 2;
      else
      } else {
        if (buf[m+1] > distsq[j][0]) {
          partner[j] = (tagint) ubuf(buf[m++]).i;
          distsq[j][0] = buf[m++];
@@ -3526,6 +3526,7 @@ void FixBondReact::unpack_reverse_comm(int n, int *list, double *buf)
      }
    }
  }
}

/* ----------------------------------------------------------------------
   write Set data to restart file
@@ -3580,9 +3581,9 @@ double FixBondReact::memory_usage()

void FixBondReact::print_bb()
{

#if 0
  //fix bond/create cargo code. eg nbonds needs to be added
  /*

for (int i = 0; i < atom->nlocal; i++) {
  // printf("TAG " TAGINT_FORMAT ": %d nbonds: ",atom->tag[i],atom->num_bond[i]);
  for (int j = 0; j < atom->num_bond[i]; j++) {
@@ -3615,9 +3616,9 @@ for (int i = 0; i < atom->nlocal; i++) {
  // printf("TAG " TAGINT_FORMAT ": %d %d %d nspecial: ",atom->tag[i],
  atom->nspecial[i][0],atom->nspecial[i][1],atom->nspecial[i][2]);
  for (int j = 0; j < atom->nspecial[i][2]; j++) {
  // printf(" " TAGINT_FORMAT,atom->special[i][j]);
    printf(" " TAGINT_FORMAT,atom->special[i][j]);
  }
  // printf("\n");
}
*/
#endif
}