Ignore:
Timestamp:
12/06/20 22:14:56 (3 years ago)
Author:
ymipsl
Message:

intermediate commit for new tranformation engine?
YM

File:
1 edited

Legend:

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

    r1974 r1984  
    2020#include "grid_scatterer_connector.hpp" 
    2121#include "grid_gatherer_connector.hpp" 
     22#include "transformation_path.hpp" 
     23#include "filter.hpp" 
    2224 
    2325 
     
    210212         bool doGridHaveDataDistributed(CContextClient* client = 0); 
    211213 
     214         /////////////////////////////////////////// 
     215         ////////    TRANSFORMATIONS           ///// 
     216         /////////////////////////////////////////// 
     217      public: 
    212218         CGridTransformation* getTransformations(); 
    213219 
     
    221227          
    222228         std::vector<std::string> getAuxInputTransformGrid(void) ;  
    223  
     229         std::map<CGrid*, std::pair<bool,StdString> >& getTransGridSource(); 
     230         bool hasTransform(); 
     231         void addTransGridSource(CGrid* gridSrc); 
    224232         void completeGrid(CGrid* transformGridSrc = 0); 
    225233         bool isTransformed(); 
     
    227235         bool isGenerated(); 
    228236         void setGenerated(); 
    229          void addTransGridSource(CGrid* gridSrc); 
    230          std::map<CGrid*, std::pair<bool,StdString> >& getTransGridSource(); 
    231          bool hasTransform(); 
    232          size_t getGlobalWrittenSize(void) ; 
     237         void setTransformationAlgorithms(); 
     238         pair<shared_ptr<CFilter>, shared_ptr<CFilter> > buildTransformationGraph(CGarbageCollector& gc, CGrid* gridSrc, double detectMissingValues, 
     239                                                                                  double defaultValue, CGrid*& newGrid) ; 
     240      private: 
     241         bool isTransformed_, isGenerated_; 
     242         CGridTransformation* transformations_; 
     243         bool hasTransform_; 
     244        
     245        /////////////////////////////////////////// 
     246      public: 
     247 
     248        size_t getGlobalWrittenSize(void) ; 
    233249          
    234250         bool isCompleted(void) ; 
     
    265281        CScalarGroup* getVirtualScalarGroup() const; 
    266282 
    267         void setTransformationAlgorithms(); 
    268283        int computeGridGlobalDimension(std::vector<int>& globalDim, 
    269284                                       const std::vector<CDomain*> domains, 
     
    310325        std::set<std::string> relFilesCompressed; 
    311326 
    312         bool isTransformed_, isGenerated_; 
    313327         
    314328        std::vector<int> axisPositionInGrid_; 
     
    317331        std::vector<int>& getAxisPositionInGrid(void) { if (!computeAxisPositionInGrid_done_) computeAxisPositionInGrid() ; return axisPositionInGrid_ ;} 
    318332 
    319         CGridTransformation* transformations_; 
    320333        bool hasDomainAxisBaseRef_;         
    321334        std::map<CGrid*, std::pair<bool,StdString> > gridSrc_; 
    322         bool hasTransform_; 
    323335 
    324336     ////////////////////////////////////////////////////////////////////////////////////// 
    325337     //  this part is related to distribution, element definition, views and connectors  // 
    326338     ////////////////////////////////////////////////////////////////////////////////////// 
     339      public: 
     340       CGrid* duplicateSentGrid(void) ; 
    327341      private: 
    328342       static void recvMask(CEventServer& event) ; 
     
    336350 
    337351      private: 
    338         CGridLocalConnector* modelToWorkflowConnector_ ; 
     352        CGridLocalConnector* modelToWorkflowConnector_ = nullptr ; 
    339353      public: 
    340354        void computeModelToWorkflowConnector(void) ; 
Note: See TracChangeset for help on using the changeset viewer.