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

This commit is contained in:
sjplimp
2013-11-19 15:00:42 +00:00
parent 97fa4aa742
commit 9f945f1bb6
2 changed files with 13 additions and 2 deletions

View File

@ -796,6 +796,17 @@ void Neighbor::init()
}
}
// sync on/off settings across all procs
int on_or_off = bond_off;
MPI_Allreduce(&on_or_off,&bond_off,1,MPI_INT,MPI_MAX,world);
on_or_off = angle_off;
MPI_Allreduce(&on_or_off,&angle_off,1,MPI_INT,MPI_MAX,world);
on_or_off = dihedral_off;
MPI_Allreduce(&on_or_off,&dihedral_off,1,MPI_INT,MPI_MAX,world);
on_or_off = improper_off;
MPI_Allreduce(&on_or_off,&improper_off,1,MPI_INT,MPI_MAX,world);
// set ptrs to topology build functions
if (bond_off) bond_build = &Neighbor::bond_partial;