Ignore:
Timestamp:
07/05/16 15:59:18 (8 years ago)
Author:
mhnguyen
Message:

Removing some redundant codes and make some minor improvements

+) Make a check to not do grid generation twice

Test
+) On Curie
+) On test compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/distribution_client.cpp

    r888 r890  
    188188      nZoomEnd_.at((indexMap_[idx]+1))   = domList[domIndex]->global_zoom_jbegin + domList[domIndex]->global_zoom_nj-1; 
    189189 
    190       dataBegin_.at(indexMap_[idx]+1) = domList[domIndex]->data_jbegin.getValue(); //(2 == domList[domIndex]->data_dim) ? domList[domIndex]->data_jbegin.getValue() : -1; 
    191 //      dataIndex_.at(indexMap_[idx]+1) = &(domList[domIndex]->data_j_index); 
    192 //      infoIndex_.at(indexMap_[idx]+1) = &(domList[domIndex]->j_index); 
     190      dataBegin_.at(indexMap_[idx]+1) = domList[domIndex]->data_jbegin.getValue(); 
    193191      dataIndex_.at(indexMap_[idx]+1).reference(domList[domIndex]->data_j_index); 
    194192      infoIndex_.at(indexMap_[idx]+1).reference(domList[domIndex]->j_index); 
     
    203201 
    204202      dataBegin_.at(indexMap_[idx]) = domList[domIndex]->data_ibegin.getValue(); 
    205 //      dataIndex_.at(indexMap_[idx]) = &(domList[domIndex]->data_i_index); 
    206 //      infoIndex_.at(indexMap_[idx]) = &(domList[domIndex]->i_index); 
    207203      dataIndex_.at(indexMap_[idx]).reference(domList[domIndex]->data_i_index); 
    208204      infoIndex_.at(indexMap_[idx]).reference(domList[domIndex]->i_index); 
     
    227223 
    228224      dataBegin_.at(indexMap_[idx]) = axisList[axisIndex]->data_begin.getValue(); 
    229 //      dataIndex_.at(indexMap_[idx]) = &(axisList[axisIndex]->data_index); 
    230 //      infoIndex_.at(indexMap_[idx]) = &(axisList[axisIndex]->index); 
    231225      dataIndex_.at(indexMap_[idx]).reference(axisList[axisIndex]->data_index); 
    232226      infoIndex_.at(indexMap_[idx]).reference(axisList[axisIndex]->index); 
Note: See TracChangeset for help on using the changeset viewer.