Ignore:
Timestamp:
05/02/17 17:03:25 (7 years ago)
Author:
yushan
Message:

redefinition of mpi_any_source and mpi_any_tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/extern/src_ep_dev/ep_probe.cpp

    r1060 r1110  
    1616      ::MPI_Comm mpi_comm = static_cast< ::MPI_Comm >(comm.mpi_comm); 
    1717      ::MPI_Status *mpi_status = static_cast< ::MPI_Status* >(status->mpi_status); 
    18       ::MPI_Iprobe(src, tag, mpi_comm, flag, mpi_status); 
     18      ::MPI_Iprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, mpi_comm, flag, mpi_status); 
    1919 
    2020      status->mpi_status = mpi_status; 
     
    8181      #pragma omp critical (_mpi_call) 
    8282      { 
    83         ::MPI_Iprobe(src, tag, mpi_comm, flag, &mpi_status); 
     83        ::MPI_Iprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, mpi_comm, flag, &mpi_status); 
    8484        if(*flag) 
    8585        { 
    86           ::MPI_Mprobe(src, tag, mpi_comm, &mpi_message, &mpi_status); 
     86          ::MPI_Mprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, mpi_comm, &mpi_message, &mpi_status); 
    8787        } 
    8888      } 
    8989      #elif _intelmpi 
    90         ::MPI_Improbe(src, tag, mpi_comm, flag, &mpi_message, &mpi_status); 
     90        ::MPI_Improbe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, mpi_comm, flag, &mpi_message, &mpi_status); 
    9191      #endif 
    9292         
Note: See TracChangeset for help on using the changeset viewer.