Ignore:
Timestamp:
05/26/11 13:34:49 (13 years ago)
Author:
hozdoba
Message:
 
File:
1 edited

Legend:

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

    r200 r205  
    8989   {  
    9090      return (this->withAxis);  
     91   } 
     92 
     93   //--------------------------------------------------------------- 
     94 
     95   StdSize CGrid::getDimension(void) const 
     96   { 
     97      return ((this->withAxis)?3:2); 
     98   } 
     99 
     100   //--------------------------------------------------------------- 
     101 
     102   std::vector<StdSize> CGrid::getShape(void) const 
     103   { 
     104      std::vector<StdSize> retvalue; 
     105      retvalue.push_back(this->domain->ni.getValue()); 
     106      retvalue.push_back(this->domain->nj.getValue()); 
     107      if (this->withAxis) 
     108         retvalue.push_back(this->axis->size.getValue()); 
     109      return (retvalue); 
     110   } 
     111   //--------------------------------------------------------------- 
     112    
     113   StdSize CGrid::getSize(void) const 
     114   { 
     115      StdSize retvalue = 1; 
     116      std::vector<StdSize> shape_ = this->getShape(); 
     117      for (StdSize s = 0; s < shape_.size(); s++) 
     118         retvalue *= shape_[s]; 
     119      return (retvalue); 
    91120   } 
    92121 
Note: See TracChangeset for help on using the changeset viewer.