source: XMLIO_V2/dev/dev_rv/src/xmlio/node/domain.cpp @ 187

Last change on this file since 187 was 187, checked in by hozdoba, 13 years ago
File size: 22.6 KB
Line 
1#include "domain.hpp"
2
3#include "attribute_template_impl.hpp"
4#include "object_template_impl.hpp"
5#include "group_template_impl.hpp"
6
7#include "mpi_manager.hpp"
8
9#include <algorithm>
10
11namespace xmlioserver {
12namespace tree {
13   
14   /// ////////////////////// Définitions ////////////////////// ///
15
16   CDomain::CDomain(void)
17      : CObjectTemplate<CDomain>(), CDomainAttributes()
18      , isChecked(false), local_mask(new CArray<int, 2>(boost::extents[0][0])), relFiles()
19      , ibegin_sub(), iend_sub(), jbegin_sub(), jend_sub()
20      , lonvalue_sub(), latvalue_sub()
21   { /* Ne rien faire de plus */ }
22
23   CDomain::CDomain(const StdString & id)
24      : CObjectTemplate<CDomain>(id), CDomainAttributes()
25      , isChecked(false), local_mask(new CArray<int, 2>(boost::extents[0][0])), relFiles()
26      , ibegin_sub(), iend_sub(), jbegin_sub(), jend_sub()
27      , lonvalue_sub(), latvalue_sub()
28   { /* Ne rien faire de plus */ }
29
30   CDomain::~CDomain(void)
31   { 
32      this->local_mask.reset();
33      for (StdSize i = 0; i < this->lonvalue_sub.size(); i++)
34      {
35         this->lonvalue_sub[i].reset();
36         this->latvalue_sub[i].reset();
37      }     
38   }
39
40   ///---------------------------------------------------------------
41
42   const std::set<StdString> & CDomain::getRelFiles(void) const
43   {
44      return (this->relFiles);
45   }
46
47   //----------------------------------------------------------------
48   
49   bool CDomain::hasZoom(void) const
50   {
51      return ((this->zoom_ni.getValue() != this->ni_glo.getValue()) && 
52              (this->zoom_nj.getValue() != this->nj_glo.getValue()));
53   }
54   
55   //----------------------------------------------------------------
56   
57   bool CDomain::isEmpty(void) const
58   {
59      return ((this->zoom_ni_loc.getValue() == 0) || 
60              (this->zoom_nj_loc.getValue() == 0));
61   }
62
63   //----------------------------------------------------------------
64
65   bool CDomain::IsWritten(const StdString & filename) const
66   {
67      return (this->relFiles.find(filename) != this->relFiles.end());
68   }
69
70   //----------------------------------------------------------------
71
72   void CDomain::addRelFile(const StdString & filename)
73   {
74      this->relFiles.insert(filename);
75   }
76
77   //----------------------------------------------------------------
78
79   void CDomain::fromBinary(StdIStream & is)
80   {
81      SuperClass::fromBinary(is);
82     
83      this->ibegin_sub.push_back(this->ibegin.getValue());
84      this->jbegin_sub.push_back(this->jbegin.getValue());
85      this->iend_sub.push_back(this->iend.getValue());
86      this->jend_sub.push_back(this->jend.getValue()); 
87     
88      this->latvalue_sub.push_back(this->latvalue.getValue());
89      this->lonvalue_sub.push_back(this->lonvalue.getValue());   
90     
91#define CLEAR_ATT(name_)\
92      SuperClassAttribute::operator[](#name_)->clear()
93
94         CLEAR_ATT(mask);
95         CLEAR_ATT(data_n_index);
96         CLEAR_ATT(data_i_index);
97         CLEAR_ATT(data_j_index);
98         
99         CLEAR_ATT(data_ni);
100         CLEAR_ATT(data_nj);
101         CLEAR_ATT(data_ibegin);
102         CLEAR_ATT(data_jbegin);
103         
104         CLEAR_ATT(ni);
105         CLEAR_ATT(nj);
106         
107#undef CLEAR_ATT
108
109      this->ibegin.setValue(*std::min_element(this->ibegin_sub.begin(),this->ibegin_sub.end()));
110      this->jbegin.setValue(*std::min_element(this->jbegin_sub.begin(),this->jbegin_sub.end()));
111      this->iend.setValue(*std::max_element(this->iend_sub.begin(),this->iend_sub.end()));
112      this->jend.setValue(*std::max_element(this->jend_sub.begin(),this->jend_sub.end()));
113   }
114
115   //----------------------------------------------------------------
116
117   StdString CDomain::GetName(void)   { return (StdString("domain")); }
118   StdString CDomain::GetDefName(void){ return (CDomain::GetName()); }
119   ENodeType CDomain::GetType(void)   { return (eDomain); }
120
121   //----------------------------------------------------------------
122
123   void CDomain::checkGlobalDomain(void)
124   {
125      if ((ni_glo.isEmpty() || ni_glo.getValue() <= 0 ) ||
126          (ni_glo.isEmpty() || nj_glo.getValue() <= 0 ))
127         ERROR("CDomain::checkAttributes(void)",
128               << "[ Id = " << this->getId() << " ] "
129               << "Le domaine global est mal défini,"
130               << " vérifiez les valeurs de \'ni_glo\' et \'nj_glo\' !") ;
131   }
132
133   //----------------------------------------------------------------
134
135   void CDomain::checkLocalIDomain(void)
136   {
137      if (!ni.isEmpty() && !ibegin.isEmpty() && iend.isEmpty())
138         iend.setValue(ibegin.getValue() + ni.getValue() - 1) ;
139
140      else if (!ni.isEmpty() && !iend.isEmpty()   && ibegin.isEmpty())
141         ibegin.setValue( - ni.getValue() + iend.getValue() + 1) ;
142
143      else if (!ibegin.isEmpty() && !iend.isEmpty() && ni.isEmpty())
144         ni.setValue(iend.getValue() - ibegin.getValue() + 1) ;
145
146      else if (!ibegin.isEmpty() && !iend.isEmpty() &&
147               !ni.isEmpty() && (iend.getValue() != ibegin.getValue() + ni.getValue() - 1))
148      {
149         ERROR("CDomain::checkAttributes(void)",
150               << "Le domaine est mal défini,"
151               << " iend est différent de (ibegin + ni - 1) !") ;
152      }
153      else
154      {
155         ERROR("CDomain::checkAttributes(void)",
156               << "Le domaine est mal défini,"
157               << " deux valeurs au moins parmis iend, ibegin, ni doivent être définies !") ;
158      }
159
160
161      if (ni.getValue() < 0 || ibegin.getValue() > iend.getValue() ||
162          ibegin.getValue() < 1 || iend.getValue() > ni_glo.getValue())
163         ERROR("CDomain::checkAttributes(void)",
164               << "[ Id = " << this->getId() << " ] "
165               << "Domaine local mal défini,"
166               << " vérifiez les valeurs ni, ni_glo, ibegin, iend") ;
167
168   }
169
170   //----------------------------------------------------------------
171
172   void CDomain::checkLocalJDomain(void)
173   {
174      if (!nj.isEmpty() && !jbegin.isEmpty() && jend.isEmpty())
175         jend.setValue(jbegin.getValue() + nj.getValue() - 1) ;
176
177      else if (!nj.isEmpty() && !jend.isEmpty() && jbegin.isEmpty())
178         jbegin.setValue( - nj.getValue() + jend.getValue() + 1) ;
179
180      else if (!jbegin.isEmpty() && !jend.isEmpty() && nj.isEmpty())
181         nj.setValue(jend.getValue() - jbegin.getValue() + 1) ;
182
183      else if (!jbegin.isEmpty() && !jend.isEmpty() && !nj.isEmpty() &&
184               (jend.getValue() != jbegin.getValue() + nj.getValue() - 1))
185      {
186         ERROR("CDomain::checkAttributes(void)",
187               << "Le domaine est mal défini,"
188               << " iend est différent de (jbegin + nj - 1) !") ;
189      }
190      else
191      {
192         ERROR("CDomain::checkAttributes(void)",
193               << "Le domaine est mal défini,"
194               << " deux valeurs au moins parmis jend, jbegin, nj doivent être définies !") ;
195      }
196
197      if (nj.getValue() < 0 || jbegin.getValue() > jend.getValue() ||
198          jbegin.getValue() < 1 || jend.getValue() > nj_glo.getValue())
199         ERROR("CDomain::checkAttributes(void)",
200               << "Domaine local mal défini,"
201               << " vérifiez les valeurs nj, nj_glo, jbegin, jend") ;
202   }
203
204
205   //----------------------------------------------------------------
206
207   void CDomain::checkMask(void)
208   {
209      using namespace std;
210     
211      int ibegin_mask = 0,
212          jbegin_mask = 0,
213          iend_mask = iend.getValue() - ibegin.getValue(),
214          jend_mask = jend.getValue() - jbegin.getValue();
215     
216      if (!zoom_ibegin.isEmpty())
217      {
218         int zoom_iend = zoom_ibegin.getValue() + zoom_ni.getValue() - 1;
219         int zoom_jend = zoom_jbegin.getValue() + zoom_nj.getValue() - 1;
220         
221         ibegin_mask = max (ibegin.getValue(), zoom_ibegin.getValue());
222         jbegin_mask = max (jbegin.getValue(), zoom_jbegin.getValue());
223         iend_mask   = min (iend.getValue(), zoom_iend);
224         jend_mask   = min (jend.getValue(), zoom_jend);
225                 
226         ibegin_mask -= ibegin.getValue();
227         jbegin_mask -= jbegin.getValue();
228         iend_mask   -= ibegin.getValue();
229         jend_mask   -= jbegin.getValue();
230      }
231     
232      //~ std::cout << "-------------------" << std::endl
233                //~ << "zoom : " << std::boolalpha << this->hasZoom() << std::endl
234                //~ << "size : " << ni.getValue()  << " X " << nj.getValue()   << std::endl
235                //~ << "it : " << ibegin.getValue() << ", " << iend.getValue() << std::endl
236                //~ << "jt : " << jbegin.getValue() << ", " << jend.getValue() << std::endl
237                //~ << "im : " << ibegin_mask << ", " << iend_mask << std::endl
238                //~ << "jm : " << jbegin_mask << ", " << jend_mask << std::endl
239                //~ << "-------------------" << std::endl;
240
241      if (!mask.isEmpty())
242      {
243         ARRAY(bool, 2) mask_ = mask.getValue();
244         unsigned int niu = ni.getValue(), nju = nj.getValue();
245         if ((mask_->shape()[0] != niu) ||
246             (mask_->shape()[1] != nju))
247            ERROR("CDomain::checkAttributes(void)",
248                  <<"Le masque n'a pas la même taille que le domaine local") ;
249                 
250         for (int i = 0; i < ni.getValue(); i++)
251         {
252            for (int j = 0; j < nj.getValue(); j++)
253            {
254               if (i < ibegin_mask && i > iend_mask &&
255                   j < jbegin_mask && j > jend_mask )
256                     (*mask_)[i][j] = false;
257            }
258         }
259      }
260      else // (!mask.hasValue())
261      { // Si aucun masque n'est défini,
262        // on en crée un nouveau qui valide l'intégralité du domaine.
263         ARRAY_CREATE(__arr, bool, 2, [ni.getValue()][nj.getValue()]);
264         for (int i = 0; i < ni.getValue(); i++)
265         {
266            for (int j = 0; j < nj.getValue(); j++)
267            {
268               if (i >= ibegin_mask && i <= iend_mask &&
269                   j >= jbegin_mask && j <= jend_mask )
270                     (*__arr)[i][j] = true;
271               else  (*__arr)[i][j] = false;
272            }
273         }
274               
275         mask.setValue(__arr);
276         __arr.reset();
277      }
278   }
279
280
281   //----------------------------------------------------------------
282
283   void CDomain::checkDomainData(void)
284   {     
285      if (!data_dim.isEmpty() &&
286         !(data_dim.getValue() == 1 || data_dim.getValue() == 2))
287      {
288         ERROR("CDomain::checkAttributes(void)",
289               << "Dimension des données non comptatible (doit être 1 ou 2) !") ;
290      }
291      else if (data_dim.isEmpty())
292      {
293         ERROR("CDomain::checkAttributes(void)",
294               << "Dimension des données non définie !") ;
295      }
296
297      if (data_ibegin.isEmpty())
298         data_ibegin.setValue(0) ;
299      if (data_jbegin.isEmpty() && (data_dim.getValue() == 2))
300         data_jbegin.setValue(0) ;
301
302      if (!data_ni.isEmpty() && (data_ni.getValue() <= 0))
303      {
304         ERROR("CDomain::checkAttributes(void)",
305               << "Dimension des données négative (data_ni).") ;
306      }
307      else if (data_ni.isEmpty())
308      {
309         data_ni.setValue((data_dim.getValue() == 1)
310                           ? (ni.getValue() * nj.getValue())
311                           : ni.getValue());
312      }
313
314      if (data_dim.getValue() == 2)
315      {
316         if (!data_nj.isEmpty() && (data_nj.getValue() <= 0) )
317         {
318            ERROR("CDomain::checkAttributes(void)",
319                  << "Dimension des données négative (data_nj).") ;
320         }
321         else if (data_nj.isEmpty())
322            data_nj.setValue(nj.getValue()) ;
323      }
324
325   }
326
327   //----------------------------------------------------------------
328
329   void CDomain::checkCompression(void)
330   {
331      if (!data_i_index.isEmpty())
332      {
333         int ssize = data_i_index.getValue()->size();
334         if (!data_n_index.isEmpty() &&
335            (data_n_index.getValue() != ssize))
336         {
337            ERROR("CDomain::checkAttributes(void)",
338                  <<"Dimension data_i_index incompatible avec data_n_index.") ;
339         }
340         else if (data_n_index.isEmpty())
341            data_n_index.setValue(ssize) ;
342
343         if (data_dim.getValue() == 2)
344         {
345            if (!data_j_index.isEmpty() &&
346               (data_j_index.getValue()->size() != data_i_index.getValue()->size()))
347            {
348               ERROR("CDomain::checkAttributes(void)",
349                     <<"Dimension data_j_index incompatible avec data_i_index.") ;
350            }
351            else if (data_j_index.isEmpty())
352            {
353               ERROR("CDomain::checkAttributes(void)",
354                     <<"La donnée data_j_index doit être renseignée !") ;
355            }
356         }
357      }
358      else
359      {
360         if (!data_n_index.isEmpty() ||
361            ((data_dim.getValue() == 2) && (!data_j_index.isEmpty())))
362            ERROR("CDomain::checkAttributes(void)", << "data_i_index non défini") ;
363      }
364
365      if (data_n_index.isEmpty())
366      { // -> bloc re-vérifié OK
367         if (data_dim.getValue() == 1)
368         {
369            const int dni = data_ni.getValue();
370            ARRAY_CREATE(__arri, int, 1, [dni]);
371            data_n_index.setValue(dni);
372            for (int i = 0; i < dni; i++)
373               (*__arri)[i] = i+1 ;
374            data_i_index.setValue(__arri) ;
375         }
376         else   // (data_dim == 2)
377         {
378            const int dni = data_ni.getValue() * data_nj.getValue();
379           
380            ARRAY_CREATE(__arri, int, 1, [dni]);
381            ARRAY_CREATE(__arrj, int, 1, [dni]);               
382            data_n_index.setValue(dni);
383           
384            for(int count = 0, i = 0; i  < data_ni.getValue(); i++)
385            {
386               for(int j = 0; j < data_nj.getValue(); j++, count++)
387               {
388                  (*__arri)[count] = i+1 ;
389                  (*__arrj)[count] = j+1 ;
390               }
391            }
392            data_i_index.setValue(__arri) ;
393            data_j_index.setValue(__arrj) ;           
394            __arri.reset();
395            __arrj.reset();
396         }
397      }
398   }
399
400   //----------------------------------------------------------------
401   
402   void CDomain::completeLonLat(void)
403   {
404      ARRAY_CREATE(lonvalue_temp, double, 1, [0]);
405      ARRAY_CREATE(latvalue_temp, double, 1, [0]);
406     
407      const int ibegin_serv  = ibegin.getValue(),
408                jbegin_serv  = jbegin.getValue(),
409                zoom_ni_serv = zoom_ni_loc.getValue(),
410                zoom_nj_serv = zoom_nj_loc.getValue();
411                     
412      /*std::cout << "Rang du serveur :" << comm::CMPIManager::GetCommRank()   << std::endl
413                << "Begin serv : "     << ibegin_serv << ", " << jbegin_serv <<  std::endl
414                << "End serv : "       << iend_serv   << ", " << jend_serv   <<  std::endl
415                << "Zoom_loc begin : " << zoom_ibegin_loc << ", " << zoom_jbegin_loc <<  std::endl
416                << "Zoom_loc size : "  << zoom_ni_loc << ", " << zoom_nj_loc <<  std::endl;*/
417     
418     
419      ARRAY(double, 1) lonvalue_ = this->lonvalue.getValue(),
420                       latvalue_ = this->latvalue.getValue();
421                       
422      if (this->data_dim.getValue() == 2)
423      {
424         StdSize dm = zoom_ni_serv * zoom_nj_serv;
425         StdSize dn = this->ni.getValue() * this->nj.getValue();
426         
427         lonvalue_->resize(boost::extents[dn]);
428         latvalue_->resize(boost::extents[dn]);
429         lonvalue_temp->resize(boost::extents[dm]);
430         latvalue_temp->resize(boost::extents[dm]);
431         
432         for (StdSize k = 0; k < lonvalue_sub.size(); k++)
433         {
434            int l = 0;
435            ARRAY(double, 1) lonvalue_loc = this->lonvalue_sub[k],
436                             latvalue_loc = this->latvalue_sub[k];
437            const int ibegin_loc = ibegin_sub[k], iend_loc = iend_sub[k],
438                      jbegin_loc = jbegin_sub[k], jend_loc = jend_sub[k];
439                     
440            for (int i = ibegin_loc - ibegin_serv; i < (iend_loc - ibegin_serv + 1); i++)
441            {
442               for (int j = jbegin_loc - jbegin_serv; j < (jend_loc - jbegin_serv + 1); j++)
443               {
444                  (*lonvalue_)[i + j * this->ni.getValue()] = (*lonvalue_loc)[l];             
445                  (*latvalue_)[i + j * this->ni.getValue()] = (*latvalue_loc)[l++];
446               }
447            }
448         }
449         this->lonvalue.setValue(lonvalue_temp);
450         this->latvalue.setValue(latvalue_temp);
451      }
452      else
453      {
454         lonvalue_->resize(boost::extents[this->ni.getValue()]);
455         latvalue_->resize(boost::extents[this->nj.getValue()]);
456         lonvalue_temp->resize(boost::extents[zoom_ni_serv]);
457         latvalue_temp->resize(boost::extents[zoom_nj_serv]);
458         
459         for (StdSize k = 0; k < lonvalue_sub.size(); k++)
460         {
461            int l = 0;
462            ARRAY(double, 1) lonvalue_loc = this->lonvalue_sub[k],
463                             latvalue_loc = this->latvalue_sub[k];
464            const int ibegin_loc = ibegin_sub[k], iend_loc = iend_sub[k],
465                      jbegin_loc = jbegin_sub[k], jend_loc = jend_sub[k];
466                     
467            for (int i = ibegin_loc - ibegin_serv; i < (iend_loc - ibegin_loc + 1); i++)
468               (*lonvalue_)[i] = (*lonvalue_loc)[l++];
469               
470            for (int j = jbegin_loc - jbegin_serv; j < (jend_loc - jbegin_loc + 1); j++)
471               (*latvalue_)[j] = (*latvalue_loc)[l++];
472         }       
473         this->lonvalue.setValue(lonvalue_temp);
474         this->latvalue.setValue(latvalue_temp);
475      }
476   }
477
478   //----------------------------------------------------------------
479
480   void CDomain::checkZoom(void)
481   {
482      // Résolution et vérification des données globales de zoom.
483      if (!this->zoom_ni.isEmpty() || !this->zoom_nj.isEmpty() ||
484          !this->zoom_ibegin.isEmpty() || !this->zoom_jbegin.isEmpty())
485      {
486         if (this->zoom_ni.isEmpty()     && this->zoom_nj.isEmpty() &&
487             this->zoom_ibegin.isEmpty() && this->zoom_jbegin.isEmpty())
488         {
489            ERROR("CDomain::checkZoom(void)",
490                  <<"Les attributs définissant un zoom doivent tous être définis") ;
491         }
492         else
493         {
494            int zoom_iend = zoom_ibegin.getValue() + zoom_ni.getValue() - 1;
495            int zoom_jend = zoom_jbegin.getValue() + zoom_nj.getValue() - 1;
496               
497            if (zoom_ibegin.getValue() < 1  || zoom_jbegin.getValue() < 1 ||
498                zoom_iend > ni_glo.getValue() || zoom_jend > nj_glo.getValue())
499               ERROR("CDomain::checkZoom(void)",
500                     << "Zoom mal défini,"
501                     << " vérifiez les valeurs zoom_ni, zoom_nj, zoom_ibegin, zoom_ibegin") ;
502         }
503      }
504      else
505      {
506         this->zoom_ni.setValue(this->ni_glo.getValue()); 
507         this->zoom_nj.setValue(this->nj_glo.getValue());
508         this->zoom_ibegin.setValue(1);
509         this->zoom_jbegin.setValue(1);
510      }
511      // Résolution des données locales de zoom.
512      {
513         int zoom_iend = zoom_ibegin.getValue() + zoom_ni.getValue() - 1;
514         int zoom_jend = zoom_jbegin.getValue() + zoom_nj.getValue() - 1;
515         
516         if ((zoom_ibegin.getValue() > iend.getValue()) || 
517             (zoom_iend < ibegin.getValue()))
518         {
519            zoom_ni_loc.setValue(0);
520            zoom_ibegin_loc.setValue(-1);
521         }
522         else
523         {
524            int zoom_ibegin_loc_ = (zoom_ibegin.getValue() > ibegin.getValue()) 
525                                 ? zoom_ibegin.getValue()
526                                 : ibegin.getValue();
527            int zoom_iend_loc_  = (zoom_iend < iend.getValue()) 
528                                 ? zoom_iend
529                                 : iend.getValue();
530            int zoom_ni_loc_ = zoom_iend_loc_ - zoom_ibegin_loc_ + 1;
531           
532            zoom_ni_loc.setValue(zoom_ni_loc_);
533            zoom_ibegin_loc.setValue(zoom_ibegin_loc_-ibegin.getValue()+1);
534         }
535         
536         if ((zoom_jbegin.getValue() > jend.getValue()) || 
537             (zoom_jend < jbegin.getValue()))
538         {
539            zoom_nj_loc.setValue(0);
540            zoom_jbegin_loc.setValue(-1);
541         }
542         else
543         {
544            int zoom_jbegin_loc_ = (zoom_jbegin.getValue() > jbegin.getValue()) 
545                                 ? zoom_jbegin.getValue()
546                                 : jbegin.getValue();
547            int zoom_jend_loc_  = (zoom_jend < jend.getValue()) 
548                                 ? zoom_jend
549                                 : jend.getValue();
550            int zoom_nj_loc_ = zoom_jend_loc_ - zoom_jbegin_loc_ + 1;
551           
552            zoom_nj_loc.setValue(zoom_nj_loc_);
553            zoom_jbegin_loc.setValue(zoom_jbegin_loc_-jbegin.getValue()+1);
554         }
555      }
556   }
557
558   //----------------------------------------------------------------
559
560   void CDomain::checkAttributes(void)
561   {
562      if (this->isChecked) return;
563
564      this->checkGlobalDomain();
565      this->checkLocalIDomain();
566      this->checkLocalJDomain();
567     
568      this->checkZoom();
569
570      if (this->latvalue_sub.size() == 0)
571      { // CÃŽté client uniquement
572         this->checkMask();
573         this->checkDomainData();
574         this->checkCompression();
575      }
576      else
577      { // CÃŽté serveur uniquement
578         if (!this->isEmpty())
579            this->completeLonLat();
580      }
581      this->completeMask();
582
583      this->isChecked = true;
584   }
585   
586   //----------------------------------------------------------------
587   
588   void CDomain::completeMask(void)
589   {
590      this->local_mask->resize(boost::extents[zoom_ni_loc.getValue()][zoom_nj_loc.getValue()]);
591   }
592
593   //----------------------------------------------------------------
594
595   ARRAY(int, 2) CDomain::getLocalMask(void) const
596   {
597      return (this->local_mask);
598   }
599   
600   //----------------------------------------------------------------
601   
602   const std::vector<int> & CDomain::getIBeginSub(void) const
603   {
604      return (this->ibegin_sub);
605   }
606   
607   //----------------------------------------------------------------
608   
609   const std::vector<int> & CDomain::getIEndSub(void) const
610   {
611      return (this->iend_sub);
612   }
613   
614   //----------------------------------------------------------------
615   
616   const std::vector<int> & CDomain::getJBeginSub(void) const
617   {
618      return (this->jbegin_sub);
619   }
620   
621   //----------------------------------------------------------------
622   
623   const std::vector<int> & CDomain::getJEndSub(void) const
624   {
625      return (this->iend_sub);
626   }
627   
628   //----------------------------------------------------------------
629   
630   const std::vector<ARRAY(double, 1)> & CDomain::getLonValueSub(void) const
631   {
632      return (this->lonvalue_sub);
633   }
634   
635   //----------------------------------------------------------------
636   
637   const std::vector<ARRAY(double, 1)> & CDomain::getLatValueSub(void) const
638   {
639      return (this->latvalue_sub);
640   }   
641   
642   ///---------------------------------------------------------------
643
644} // namespace tree
645} // namespace xmlioserver
Note: See TracBrowser for help on using the repository browser.