forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10983 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
c44a7a2673
commit
767784895d
|
@ -3358,8 +3358,6 @@ void Variable::peratom2global(int flag, char *word,
|
|||
|
||||
int index = atom->map(id);
|
||||
|
||||
printf("WORD %d %d %s %d\n",me,index,word,flag);
|
||||
|
||||
double mine;
|
||||
if (index >= 0 && index < atom->nlocal) {
|
||||
|
||||
|
@ -3386,13 +3384,9 @@ void Variable::peratom2global(int flag, char *word,
|
|||
|
||||
} else mine = 0.0;
|
||||
|
||||
printf("PRE %d %d %s %d\n",me,index,word,flag);
|
||||
|
||||
double value;
|
||||
MPI_Allreduce(&mine,&value,1,MPI_DOUBLE,MPI_SUM,world);
|
||||
|
||||
printf("POST %d %d %s %d\n",me,index,word,flag);
|
||||
|
||||
if (tree) {
|
||||
Tree *newtree = new Tree();
|
||||
newtree->type = VALUE;
|
||||
|
|
Loading…
Reference in New Issue