Changeset 1110 for XIOS/dev/branch_yushan/extern/src_ep_dev/ep_probe.cpp
- Timestamp:
- 05/02/17 17:03:25 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_probe.cpp
r1060 r1110 16 16 ::MPI_Comm mpi_comm = static_cast< ::MPI_Comm >(comm.mpi_comm); 17 17 ::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); 19 19 20 20 status->mpi_status = mpi_status; … … 81 81 #pragma omp critical (_mpi_call) 82 82 { 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); 84 84 if(*flag) 85 85 { 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); 87 87 } 88 88 } 89 89 #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); 91 91 #endif 92 92
Note: See TracChangeset
for help on using the changeset viewer.