Ignore:
Timestamp:
03/28/23 16:42:11 (15 months ago)
Author:
ymipsl
Message:

First guess in supression of attached mode replaced by online reader and write filters

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/dev/XIOS_ATTACHED/src/distribution/grid_remote_connector.cpp

    r2397 r2482  
    9999      size_t globalIndexSize = globalIndex.numElements() ; 
    100100       
    101       size_t allEqual ; 
    102       MPI_Allreduce(&globalIndexSize, &allEqual, 1, MPI_SIZE_T, MPI_BXOR, localComm_) ; 
    103       if (allEqual!=0)  
     101      size_t minVal,maxVal ; 
     102      MPI_Allreduce(&globalIndexSize, &minVal, 1, MPI_SIZE_T, MPI_MIN, localComm_) ; 
     103      MPI_Allreduce(&globalIndexSize, &maxVal, 1, MPI_SIZE_T, MPI_MAX, localComm_) ; 
     104      if (minVal!=maxVal)  
    104105      { 
    105106        isSrcViewDistributed_[i]=true ; 
     
    110111      size_t hashValue=0 ; 
    111112      for(size_t ind=0;ind<globalIndexSize;ind++) hashValue += hashGlobalIndex(globalIndex(ind)) ; 
    112       MPI_Allreduce(&hashValue, &allEqual, 1, MPI_SIZE_T, MPI_BXOR, localComm_) ; 
    113       if (allEqual!=0) isSrcViewDistributed_[i]=true ; 
     113      MPI_Allreduce(&hashValue, &minVal, 1, MPI_SIZE_T, MPI_MIN, localComm_) ; 
     114      MPI_Allreduce(&hashValue, &maxVal, 1, MPI_SIZE_T, MPI_MAX, localComm_) ; 
     115      if (minVal!=maxVal) isSrcViewDistributed_[i]=true ; 
    114116      else isSrcViewDistributed_[i]=false ; 
    115117    } 
Note: See TracChangeset for help on using the changeset viewer.