Ignore:
Timestamp:
10/08/20 13:10:29 (4 years ago)
Author:
ymipsl
Message:

Xios coupling

  • fix problem when sending grid mask from client to server
  • remove methods about grid compression, which will be managed in other ways

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/axis.hpp

    r1943 r1956  
    8888         bool isWrittenCompressed(const StdString& filename) const; 
    8989         bool isDistributed(void) const; 
    90          bool isCompressible(void) const; 
     90         
     91        public: 
     92        /*! 
     93            \brief return if the axis can be written or not in a compressed way. 
     94            ie if there are some masked or indexed point on the domain. Valid only on server side. 
     95            \return true if domain can be writtedn in a compressed way 
     96         */  
     97         bool isCompressible(void) { if (!isCompressibleComputed_) computeIsCompressible() ; return isCompressible_ ;}  
     98        private: 
     99         bool isCompressible_ ; /** specify if the domain can be written in a compressed way */  
     100         bool isCompressibleComputed_=false ; /** Indicate if compressability has been computed*/ 
     101         void computeIsCompressible() ; 
     102         
     103        public: 
    91104 
    92105         /// Mutateur /// 
     
    120133                                    CServerDistributionDescription::ServerDistributionType disType = CServerDistributionDescription::BAND_DISTRIBUTION); 
    121134 
    122          void checkEligibilityForCompressedOutput(); 
    123135         size_t getGlobalWrittenSize(void) ; 
    124136 
     
    213225         std::set<StdString> relFiles, relFilesCompressed; 
    214226         TransMapTypes transformationMap_;          
    215          //! True if and only if the data defined on the axis can be outputted in a compressed way 
    216          bool isCompressible_; 
    217227 
    218228         std::map<int, map<int,int> > nbSenders; // Mapping of number of communicating client to a server 
     
    254264       public: 
    255265         void computeRemoteElement(CContextClient* client, EDistributionType) ; 
    256          void distributeToServer(CContextClient* client, std::map<int, CArray<size_t,1>>& globalIndex, const string& axisId="") ; 
     266         void distributeToServer(CContextClient* client, std::map<int, CArray<size_t,1>>& globalIndex, CScattererConnector* &scattererConnector, 
     267                                 const string& axisId="") ; 
    257268 
    258269         static void recvAxisDistribution(CEventServer& event) ; 
Note: See TracChangeset for help on using the changeset viewer.