Ignore:
Timestamp:
09/20/21 18:18:17 (3 years ago)
Author:
ymipsl
Message:

Fix problem in remoteConnector when computing grid to sent to server.
Some optimisations when grid is not distributed need knowledge of the workflow view.
New CGridClientServerConnector class created based on CGridRemoteConnector.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/grid_remote_connector.hpp

    r2179 r2236  
    2222      void computeViewDistribution(void) ; 
    2323      void computeConnector(void) ; 
     24      void computeConnectorMethods(void) ; 
    2425      void computeGenericMethod(vector<CLocalView*>& srcView, vector<CDistributedView*>& dstView, vector<int>& indElements) ; 
    2526      void computeSrcDstNonDistributed(int i, map<int,bool>& ranks) ; 
    2627      void computeDstNonDistributed(int i, map<int,bool>& ranks) ; 
    2728      void computeSrcNonDistributed(int i) ; 
    28       void removeRedondantRanks(void) ; 
     29      void computeRedondantRanks(void) ; 
    2930      std::map<int, CArray<size_t,1>>& getDistributedGlobalIndex(int pos) { return elements_[pos] ;}  
    30  
    31     private: 
     31      const vector<bool>& getIsSrcViewDistributed(void) { return isSrcViewDistributed_ ;} 
     32      const vector<bool>& getIsDstViewDistributed(void) { return isDstViewDistributed_ ;} 
     33      const set<int>& getRankToRemove(void) {return rankToRemove_;}  
     34     
     35    protected: 
    3236   
    3337    /**  
     
    7680       */ 
    7781      vector<bool> isDstViewDistributed_ ; 
     82 
     83      /** 
     84      /* Redondant ranks of the \b elements_ are stored there by calling computeRedondantRanks(), to be removed latter or to be retrieve from elsewhere.  
     85       */ 
     86      set<int> rankToRemove_ ; 
    7887       
    7988     
Note: See TracChangeset for help on using the changeset viewer.