Skip to content
Snippets Groups Projects
Commit 50c7234f authored by DallasTrinkle's avatar DallasTrinkle
Browse files

Fix to communication for mpi. Tested, and now working correctly with MPI.

parent f58fc948
No related branches found
No related tags found
No related merge requests found
......@@ -668,15 +668,15 @@ void PairMEAMSpline::init_style()
error->all(FLERR,"Pair style meam/spline requires newton pair on");
// Need both full and half neighbor list.
int irequest_full = neighbor->request(this);
int irequest_full = neighbor->request(this,instance_me);
neighbor->requests[irequest_full]->id = 1;
neighbor->requests[irequest_full]->half = 0;
neighbor->requests[irequest_full]->full = 1;
int irequest_half = neighbor->request(this);
int irequest_half = neighbor->request(this,instance_me);
neighbor->requests[irequest_half]->id = 2;
neighbor->requests[irequest_half]->half = 0;
neighbor->requests[irequest_half]->halffull = 1;
neighbor->requests[irequest_half]->halffulllist = irequest_full;
// neighbor->requests[irequest_half]->half = 1;
// neighbor->requests[irequest_half]->halffull = 1;
// neighbor->requests[irequest_half]->halffulllist = irequest_full;
}
/* ----------------------------------------------------------------------
......@@ -705,7 +705,7 @@ int PairMEAMSpline::pack_forward_comm(int n, int *list, double *buf, int pbc_fla
int* list_iter_end = list + n;
while(list_iter != list_iter_end)
*buf++ = Uprime_values[*list_iter++];
return 1;
return n;
}
/* ---------------------------------------------------------------------- */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment