remove references to non-existent MPI_Statuses
This commit is contained in:
@ -557,15 +557,15 @@ void CommTiled::setup()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// reallocate MPI Requests and Statuses as needed
|
// reallocate MPI Requests as needed
|
||||||
|
|
||||||
int nmax = 0;
|
int nmax = 0;
|
||||||
for (i = 0; i < nswap; i++) nmax = MAX(nmax,nprocmax[i]);
|
for (i = 0; i < nswap; i++) nmax = MAX(nmax,nprocmax[i]);
|
||||||
for (i = 0; i < dimension; i++) nmax = MAX(nmax,nexchprocmax[i]);
|
for (i = 0; i < dimension; i++) nmax = MAX(nmax,nexchprocmax[i]);
|
||||||
if (nmax > maxreqstat) {
|
if (nmax > maxrequest) {
|
||||||
maxreqstat = nmax;
|
maxrequest = nmax;
|
||||||
delete [] requests;
|
delete [] requests;
|
||||||
requests = new MPI_Request[maxreqstat];
|
requests = new MPI_Request[maxrequest];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2098,7 +2098,7 @@ void CommTiled::allocate_swap(int n)
|
|||||||
sendlist[i] = NULL;
|
sendlist[i] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
maxreqstat = 0;
|
maxrequest = 0;
|
||||||
requests = NULL;
|
requests = NULL;
|
||||||
|
|
||||||
for (int i = 0; i < n; i++) {
|
for (int i = 0; i < n; i++) {
|
||||||
|
|||||||
@ -95,7 +95,7 @@ class CommTiled : public Comm {
|
|||||||
int smaxall,rmaxall; // max size in atoms of any borders send/recv
|
int smaxall,rmaxall; // max size in atoms of any borders send/recv
|
||||||
// for comm to all procs in one swap
|
// for comm to all procs in one swap
|
||||||
|
|
||||||
int maxreqstat; // max size of Request and Status vectors
|
int maxrequest; // max size of Request vector
|
||||||
MPI_Request *requests;
|
MPI_Request *requests;
|
||||||
|
|
||||||
struct RCBinfo {
|
struct RCBinfo {
|
||||||
|
|||||||
Reference in New Issue
Block a user