Changeset 1296


Ignore:
Timestamp:
10/06/17 15:19:03 (4 years ago)
Author:
ymipsl
Message:

bug fix in axis -> scalar reduction transformation.
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/transformation/scalar_algorithm_reduce_axis.cpp

    r1261 r1296  
    108108  TransformationWeightMap& transWeight = this->transformationWeight_[0]; 
    109109 
    110   CArray<int,1>& axisSrcIndex = axisSrc_->index; 
    111   int globalIndexSize = axisSrcIndex.numElements(); 
     110  int globalIndexSize = axisSrc_-> n_glo; 
    112111 
    113112  for (int idx = 0; idx < globalIndexSize; ++idx) 
    114113  { 
    115     transMap[0].push_back(axisSrcIndex(idx)); 
     114    transMap[0].push_back(idx); 
    116115    transWeight[0].push_back(1.0); 
    117116  } 
Note: See TracChangeset for help on using the changeset viewer.