forked from lijiext/lammps
re-indent code to better match LAMMPS conventions
This commit is contained in:
parent
8fec14f593
commit
d946c61789
|
@ -2394,7 +2394,7 @@ void FixBondReact::glove_ghostcheck()
|
|||
// 'ghosts of another' indication taken from comm->sendlist
|
||||
|
||||
int ghostly = 0;
|
||||
#if !defined(MPI_STUBS)
|
||||
#if !defined(MPI_STUBS)
|
||||
if (comm->style == 0) {
|
||||
for (int i = 0; i < onemol->natoms; i++) {
|
||||
int ilocal = atom->map(glove[i][1]);
|
||||
|
@ -2406,7 +2406,7 @@ void FixBondReact::glove_ghostcheck()
|
|||
} else {
|
||||
ghostly = 1;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (ghostly == 1) {
|
||||
ghostly_mega_glove[0][ghostly_num_mega] = rxnID;
|
||||
|
@ -3513,18 +3513,19 @@ 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++];
|
||||
} else m += 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue