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/distribution_client.cpp

    r664 r666  
    9999  for (int k = 0; k < axisSize; ++k) 
    100100  { 
    101     int n = axisList[k]->ni; 
     101    int n = axisList[k]->n; 
    102102    nIndexAxis_[k].resize(n); 
    103103    for (int i = 0; i < n; ++i) 
     
    221221    else // So it's an axis 
    222222    { 
    223       nLocal_.at(indexMap_[idx]) = axisList[axisIndex]->ni.getValue(); 
    224       nGlob_.at(indexMap_[idx]) = axisList[axisIndex]->size.getValue(); 
     223      nLocal_.at(indexMap_[idx]) = axisList[axisIndex]->n.getValue(); 
     224      nGlob_.at(indexMap_[idx]) = axisList[axisIndex]->n_glo.getValue(); 
    225225      nBeginLocal_.at(indexMap_[idx]) = 0; 
    226       nBeginGlobal_.at(indexMap_[idx]) = axisList[axisIndex]->ibegin.getValue(); 
     226      nBeginGlobal_.at(indexMap_[idx]) = axisList[axisIndex]->begin.getValue(); 
    227227      nZoomBegin_.at((indexMap_[idx])) = axisList[axisIndex]->global_zoom_begin; 
    228228      nZoomEnd_.at((indexMap_[idx])) = axisList[axisIndex]->global_zoom_begin + axisList[axisIndex]->global_zoom_size-1; 
     
    636636{ 
    637637   int tempI = dataIndex + dataBegin; 
    638    return ((tempI-1)%ni); 
     638   return ((tempI)%ni); 
    639639} 
    640640 
Note: See TracChangeset for help on using the changeset viewer.