- Timestamp:
- 04/07/11 16:38:15 (13 years ago)
- 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 32 32 boost::shared_ptr<CDomain> domain = 33 33 CGroupFactory::CreateChild(domain_def, StdString("mon_domaine")); 34 35 boost::shared_ptr<CDomain> sdomain = 36 CGroupFactory::CreateChild(domain_def, StdString("mon_super_domaine")); 34 37 35 38 // Définition des attributs de la grille. … … 38 41 39 42 // Définition des attributs de l'axe. 40 ARRAY_CREATE(zvalue, double, 1, [10 0]);43 ARRAY_CREATE(zvalue, double, 1, [10]); 41 44 42 45 axis->size.setValue(zvalue->num_elements()); … … 46 49 ARRAY_CREATE(latvalue, double, 1, [200]); 47 50 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; 48 56 49 57 domain->ni_glo.setValue(40); … … 57 65 domain->data_dim.setValue(2); 58 66 67 domain->mask.setValue(mask); 59 68 domain->lonvalue.setValue(lonvalue); 60 69 domain->latvalue.setValue(latvalue); 61 70 62 71 // Résolution 63 72 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; 64 78 65 79 // Sortie de l'arborescence xml sous forme de fichier. -
XMLIO_V2/dev/dev_rv/src/xmlio/node/grid.hpp
r168 r169 98 98 void solveAxisRef(void); 99 99 100 p rivate:100 public: 101 101 102 102 /// Propriétés privées ///
Note: See TracChangeset
for help on using the changeset viewer.