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

This commit is contained in:
sjplimp
2013-01-17 15:48:04 +00:00
parent 0c292ed533
commit 2cc946fdb5
2 changed files with 33 additions and 16 deletions

View File

@ -70,7 +70,7 @@ void Special::build()
// setup ring of procs
int next = me + 1;
int prev = me -1;
int prev = me - 1;
if (next == nprocs) next = 0;
if (prev < 0) prev = nprocs - 1;