Ignore:
Timestamp:
07/05/16 15:59:18 (5 years ago)
Author:
mhnguyen
Message:

Removing some redundant codes and make some minor improvements

+) Make a check to not do grid generation twice

Test
+) On Curie
+) On test compilation

File:
1 edited

Legend:

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

    r887 r890  
    120120         static CGrid* createGrid(const std::vector<CDomain*>& domains, const std::vector<CAxis*>& axis, 
    121121                                  const CArray<int,1>& axisDomainOrder = CArray<int,1>()); 
    122 //         static CGrid* createGrid(StdString id, const std::vector<CDomain*>& domains, const std::vector<CAxis*>& axis, 
    123 //                                  const CArray<int,1>& axisDomainOrder = CArray<int,1>()); 
    124122         static CGrid* createGrid(StdString id, const std::vector<CDomain*>& domains, const std::vector<CAxis*>& axis, 
    125123                                  const std::vector<CScalar*>& scalars, const CArray<int,1>& axisDomainOrder = CArray<int,1>()); 
    126124         static CGrid* createGrid(const std::vector<CDomain*>& domains, const std::vector<CAxis*>& axis, 
    127125                                  const std::vector<CScalar*>& scalars, const CArray<int,1>& axisDomainOrder); 
    128 //         static StdString generateId(const std::vector<CDomain*>& domains, const std::vector<CAxis*>& axis, 
    129 //                                     const std::vector<CScalar*>& scalars, const CArray<int,1>& axisDomainOrder = CArray<int,1>()); 
    130126         static StdString generateId(const std::vector<CDomain*>& domains, const std::vector<CAxis*>& axis, 
    131127                                     const std::vector<CScalar*>& scalars, const CArray<int,1>& axisDomainOrder = CArray<int,1>()); 
     
    206202         bool isTransformed(); 
    207203         void setTransformed(); 
     204         bool isGenerated(); 
     205         void setGenerated(); 
    208206         void addTransGridSource(CGrid* gridSrc); 
    209207         std::map<CGrid*, std::pair<bool,StdString> >& getTransGridSource(); 
     
    283281 
    284282        bool isTransformed_; 
     283        bool isGenerated_; 
    285284        std::vector<int> axisPositionInGrid_; 
    286285        CGridTransformation* transformations_; 
Note: See TracChangeset for help on using the changeset viewer.