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