Ignore:
Timestamp:
05/19/17 10:45:40 (4 years ago)
Author:
yushan
Message:

test_remap back to work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/extern/remap/src/mapper.cpp

    r1114 r1140  
    239239        Coord **sendGrad = new Coord*[mpiSize]; 
    240240        GloId **sendNeighIds = new GloId*[mpiSize]; 
    241         MPI_Request *sendRequest = new MPI_Request[3*mpiSize]; 
    242         MPI_Request *recvRequest = new MPI_Request[3*mpiSize]; 
     241        MPI_Request *sendRequest = new MPI_Request[4*mpiSize]; 
     242        MPI_Request *recvRequest = new MPI_Request[4*mpiSize]; 
    243243        for (int rank = 0; rank < mpiSize; rank++) 
    244244        { 
     
    267267                } 
    268268        } 
    269         MPI_Status *status = new MPI_Status[3*mpiSize]; 
    270         MPI_Waitall(nbRecvRequest, recvRequest, status); 
     269        MPI_Status *status = new MPI_Status[4*mpiSize]; 
     270         
    271271        MPI_Waitall(nbSendRequest, sendRequest, status); 
     272        MPI_Waitall(nbRecvRequest, recvRequest, status); 
    272273 
    273274        /* for all indices that have been received from requesting ranks: pack values and gradients, then send */ 
     
    343344                } 
    344345        } 
     346         
     347        MPI_Waitall(nbSendRequest, sendRequest, status); 
    345348        MPI_Waitall(nbRecvRequest, recvRequest, status); 
    346         MPI_Waitall(nbSendRequest, sendRequest, status); 
     349         
    347350 
    348351        /* now that all values and gradients are available use them to computed interpolated values on target 
Note: See TracChangeset for help on using the changeset viewer.