Ignore:
Timestamp:
02/16/16 10:14:23 (8 years ago)
Author:
mhnguyen
Message:

Implementing grid destination clone in case of two grid source

+) Clone attributes of grid destination as well as its transformation
+) Clean some redundant codes

Test
+) All tests pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/grid.hpp

    r821 r823  
    127127         static StdString generateId(const std::vector<CDomain*>& domains, const std::vector<CAxis*>& axis, 
    128128                                     const CArray<bool,1>& axisDomainOrder = CArray<bool,1>()); 
     129         static StdString generateId(const CGrid* gridSrc, const CGrid* gridDest); 
     130         static CGrid* cloneGrid(const StdString& idNewGrid, CGrid* gridSrc); 
    129131 
    130132      public: 
     
    191193         bool isTransformed(); 
    192194         void setTransformed(); 
     195         void addTransGridSource(CGrid* gridSrc); 
     196         std::map<CGrid*, std::pair<bool,StdString> >& getTransGridSource(); 
    193197 
    194198      public: 
     
    242246        void setTransformationAlgorithms(); 
    243247 
    244         std::vector<int> globalDim_; 
     248 
    245249 
    246250      private: 
     
    267271        CGridTransformation* transformations_; 
    268272        bool hasDomainAxisBaseRef_; 
     273        std::vector<int> globalDim_; 
     274        std::map<CGrid*, std::pair<bool,StdString> > gridSrc_; 
    269275   }; // class CGrid 
    270276 
Note: See TracChangeset for help on using the changeset viewer.