Ignore:
Timestamp:
08/24/15 14:53:27 (9 years ago)
Author:
mhnguyen
Message:

Change name of several axis attributes and remove some redundant variable of domain

+) Change name of axis attributes to make them consistent with ones of domain
+) Remove zoom_client_* of domain

Test
+) On Curie
+) All tests pass and are correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/zoom_axis.cpp

    r623 r666  
    2525  void CZoomAxis::checkValid(CAxis* axisDest) 
    2626  { 
    27     int axisIBegin, axisNi, axisSize; 
     27    int axisIBegin, axisNi, axisGlobalSize; 
    2828    int zoom_begin, zoom_end, zoom_size; 
    2929 
    30     axisIBegin = axisDest->ibegin.getValue(); 
    31     axisNi     = axisDest->ni.getValue(); 
    32     axisSize   = axisDest->size.getValue(); 
     30    axisIBegin = axisDest->begin.getValue(); 
     31    axisNi     = axisDest->n.getValue(); 
     32    axisGlobalSize   = axisDest->n_glo.getValue(); 
    3333 
    3434    zoom_begin = (this->zoom_begin.isEmpty()) ?  0 : this->zoom_begin.getValue() ; 
    35     zoom_size  = (this->zoom_size.isEmpty()) ?  axisSize : this->zoom_size.getValue() ; 
    36     zoom_end   = (this->zoom_end.isEmpty()) ?  (axisSize - 1) : this->zoom_end.getValue() ; 
     35    zoom_size  = (this->zoom_size.isEmpty()) ?  axisGlobalSize : this->zoom_size.getValue() ; 
     36    zoom_end   = (this->zoom_end.isEmpty()) ?  (axisGlobalSize - 1) : this->zoom_end.getValue() ; 
    3737 
    3838    if (this->zoom_begin.isEmpty()) zoom_begin=zoom_end-zoom_size+1; 
     
    4040    if (this->zoom_end.isEmpty()) zoom_end=zoom_begin+zoom_size-1; 
    4141 
    42     if ((zoom_begin < 0) || (zoom_begin > axisSize-1) || (zoom_end<0) || (zoom_end>axisSize-1) || (zoom_size<1) || (zoom_size>axisSize) || (zoom_begin>zoom_end)) 
     42    if ((zoom_begin < 0) || (zoom_begin > axisGlobalSize-1) || (zoom_end<0) || (zoom_end>axisGlobalSize-1) || (zoom_size<1) || (zoom_size>axisGlobalSize) || (zoom_begin>zoom_end)) 
    4343      ERROR("CZoomAxis::checkAttributes(void)", 
    4444            << "One or more attributes among <zoom_begin>, <zoom_end>, <zoom_size> of axis transformation [ id = '" << axisDest->getId() << "' , context = '" << CObjectFactory::GetCurrentContextId() << "' ] are not well specified"); 
Note: See TracChangeset for help on using the changeset viewer.