Ignore:
Timestamp:
06/08/18 19:34:51 (3 years ago)
Author:
yushan
Message:

save dev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/server.cpp

    r1520 r1533  
    658658         MPI_Get_count(&status,MPI_CHAR,&(counts.back())) ; 
    659659         buffers.push_back(new char[counts.back()]) ; 
     660         //requests.push_back(request); 
     661         //MPI_Irecv((void*)(buffers.back()),counts.back(),MPI_CHAR,root,2,intraComm,&(requests.back())) ; 
     662         MPI_Irecv((void*)(buffers.back()),counts.back(),MPI_CHAR,root,2,intraComm,&request) ; 
    660663         requests.push_back(request); 
    661          MPI_Irecv((void*)(buffers.back()),counts.back(),MPI_CHAR,root,2,intraComm,&(requests.back())) ; 
    662664         isEventRegistered.push_back(false); 
    663665         isEventQueued.push_back(false); 
     
    668670       { 
    669671         // (2) If context id is received, register an event 
    670          MPI_Test(&requests[ctxNb],&flag,&status) ; 
     672         if(!isEventRegistered[ctxNb]) MPI_Test(&requests[ctxNb],&flag,&status) ; 
    671673         if (flag==true && !isEventRegistered[ctxNb]) 
    672674         { 
Note: See TracChangeset for help on using the changeset viewer.