Changeset 169 for XMLIO_V2/dev


Ignore:
Timestamp:
04/07/11 16:38:15 (13 years ago)
Author:
hozdoba
Message:
 
Location:
XMLIO_V2/dev/dev_rv/src/xmlio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/dev_rv/src/xmlio/main_server.cpp

    r168 r169  
    3232      boost::shared_ptr<CDomain> domain =  
    3333         CGroupFactory::CreateChild(domain_def, StdString("mon_domaine")); 
     34          
     35      boost::shared_ptr<CDomain> sdomain =  
     36         CGroupFactory::CreateChild(domain_def, StdString("mon_super_domaine")); 
    3437       
    3538      // Définition des attributs de la grille. 
     
    3841       
    3942      // Définition des attributs de l'axe. 
    40       ARRAY_CREATE(zvalue, double, 1, [100]); 
     43      ARRAY_CREATE(zvalue, double, 1, [10]); 
    4144            
    4245      axis->size.setValue(zvalue->num_elements()); 
     
    4649      ARRAY_CREATE(latvalue, double, 1, [200]); 
    4750      ARRAY_CREATE(lonvalue, double, 1, [200]); 
     51       
     52      ARRAY_CREATE(mask, bool, 2, [20][10]); 
     53       
     54      for (StdSize i = 0; i<mask->num_elements(); i++) 
     55         (mask->data())[i] = i%2; 
    4856       
    4957      domain->ni_glo.setValue(40); 
     
    5765      domain->data_dim.setValue(2); 
    5866       
     67      domain->mask.setValue(mask); 
    5968      domain->lonvalue.setValue(lonvalue); 
    6069      domain->latvalue.setValue(latvalue); 
    61        
     70            
    6271      // Résolution 
    6372      grid->solveReference(); 
     73       
     74      std::cout << grid->storeIndex  << std::endl; 
     75      std::cout << grid->out_i_index << std::endl; 
     76      std::cout << grid->out_j_index << std::endl; 
     77      std::cout << grid->out_l_index << std::endl; 
    6478       
    6579      // Sortie de l'arborescence xml sous forme de fichier. 
  • XMLIO_V2/dev/dev_rv/src/xmlio/node/grid.hpp

    r168 r169  
    9898         void solveAxisRef(void); 
    9999 
    100       private: 
     100      public: 
    101101 
    102102         /// Propriétés privées /// 
Note: See TracChangeset for help on using the changeset viewer.