Changeset 868


Ignore:
Timestamp:
06/09/16 11:33:23 (5 years ago)
Author:
mhnguyen
Message:

Fixing a stupid bug in transformation which sometimes makes wrong result

Test
+) On Curie
+) All results are correct

File:
1 edited

Legend:

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

    r867 r868  
    287287      for (int ind = 0; ind < innnerLoopSize; ++ind) 
    288288      { 
    289         currentIndexSrc[0] = (globalElementIndexOnProc[0])[rankSrc][ind]; 
     289        currentIndexDst[0] = currentIndexSrc[0] = (globalElementIndexOnProc[0])[rankSrc][ind]; 
    290290        int globalElementDstIndexSize = 0; 
    291291        if (1 == src2DstMap.count(currentIndexSrc[elementPositionInGrid])) 
     
    293293          globalElementDstIndexSize = src2DstMap[currentIndexSrc[elementPositionInGrid]].size(); 
    294294        } 
     295 
    295296        std::vector<size_t> globalDstVecIndex(globalElementDstIndexSize,0); 
    296297        size_t globalSrcIndex = 0; 
Note: See TracChangeset for help on using the changeset viewer.