git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9544 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -1514,7 +1514,7 @@ void Comm::forward_comm_array(int n, double **array)
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void Comm::ring(int n, int nper, void *inbuf, int messtag,
|
||||
void (*callback)(int, char *), void *outbuf)
|
||||
void (*callback)(int, char *), void *outbuf, int self)
|
||||
{
|
||||
MPI_Request request;
|
||||
MPI_Status status;
|
||||
@ -1541,7 +1541,7 @@ void Comm::ring(int n, int nper, void *inbuf, int messtag,
|
||||
MPI_Get_count(&status,MPI_CHAR,&nbytes);
|
||||
memcpy(buf,bufcopy,nbytes);
|
||||
}
|
||||
callback(nbytes/nper,buf);
|
||||
if (self || loop < nprocs-1) callback(nbytes/nper,buf);
|
||||
}
|
||||
|
||||
if (outbuf) memcpy(outbuf,buf,nbytes);
|
||||
|
||||
Reference in New Issue
Block a user