- Timestamp:
- 09/25/20 16:09:35 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/scatterer_connector.cpp
r1918 r1943 51 51 52 52 // compute the number of senders for a remote destination view 53 int commSize ; 54 MPI_Comm_size(localComm_, &commSize) ; 55 vector<int> ranks(commSize,0) ; 53 vector<int> ranks(remoteCommSize_,0) ; 56 54 for(auto& rank : connector_) ranks[rank.first] = 1 ; 57 MPI_Allreduce(MPI_IN_PLACE,ranks.data(), commSize,MPI_INT,MPI_SUM,localComm_) ;55 MPI_Allreduce(MPI_IN_PLACE,ranks.data(),remoteCommSize_,MPI_INT,MPI_SUM,localComm_) ; 58 56 for(auto& rank : connector_) nbSenders_[rank.first] = ranks[rank.first] ; 59 57
Note: See TracChangeset
for help on using the changeset viewer.