Ignore:
Timestamp:
07/07/15 10:46:33 (9 years ago)
Author:
mhnguyen
Message:

Implementing zooming on a domain

+) Add algorithm to do zooming on a domain
+) Remove some redundant codes

Test
+) On Curie
+) test_complete and test_client are correct

File:
1 edited

Legend:

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

    r622 r631  
    1414#include "attribute_array.hpp" 
    1515#include "attribute_enum.hpp" 
     16#include "transformation.hpp" 
     17#include "transformation_enum.hpp" 
    1618 
    1719namespace xios { 
     
    4951         typedef CDomainAttributes RelAttributes; 
    5052         typedef CDomainGroup      RelGroup; 
     53         typedef CTransformation<CDomain>::TransformationMapTypes TransMapTypes; 
    5154 
    5255         /// Constructeurs /// 
     
    5962         void duplicateAttributes(CDomain* domain); 
    6063 
     64         virtual void parse(xml::CXMLNode & node); 
     65 
    6166         /// Vérifications /// 
    6267         void checkAttributes(void); 
     
    6570 
    6671         void sendCheckedAttributes(); 
     72 
     73         bool hasTransformation(); 
     74         void solveInheritanceTransformation(); 
     75         TransMapTypes getAllTransformations(); 
    6776 
    6877      private : 
     
    122131        CArray<int,2> mapConnectedServer ;  // (ni,nj) => mapped to connected server number, -1 if no server is target 
    123132 
    124  
     133        int global_zoom_ibegin, global_zoom_ni; 
     134        int global_zoom_jbegin, global_zoom_nj; 
    125135//        vector<int> ib_srv, ie_srv, in_srv ; 
    126136//        vector<int> jb_srv, je_srv, jn_srv ; 
     
    160170         bool hasBounds ; 
    161171         bool hasArea; 
     172      private: 
     173         void checkTransformations(); 
     174         void setTransformations(const TransMapTypes&); 
     175 
    162176       private : 
    163  
    164          /// Proriétés protégées /// 
    165177         bool isChecked; 
    166178         std::set<StdString> relFiles; 
     
    171183         std::vector<int> connectedServerRank_; 
    172184         bool isDistributed_; 
     185         TransMapTypes transformationMap_; 
    173186 
    174187         DECLARE_REF_FUNC(Domain,domain) 
Note: See TracChangeset for help on using the changeset viewer.