Ignore:
Timestamp:
09/25/20 16:09:35 (4 years ago)
Author:
ymipsl
Message:

Solve issues for grid mask on server side.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/scatterer_connector.cpp

    r1918 r1943  
    5151 
    5252   // 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) ; 
    5654    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_) ; 
    5856    for(auto& rank : connector_) nbSenders_[rank.first] = ranks[rank.first] ; 
    5957 
Note: See TracChangeset for help on using the changeset viewer.