Ignore:
Timestamp:
04/26/16 16:03:51 (8 years ago)
Author:
mhnguyen
Message:

Changing the way to create virtual grid during transformation.

+)Instead of establishing relation between source grid of current transformation and
the original source grid (source grid of the first transformation), each transformation
keeps its list of source grid and destination, which will be used in interpolation.
+) Clean some redundant codes

Test
+) All official tests pass
+) interpolation tests pass

File:
1 edited

Legend:

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

    r833 r841  
    8383      { 
    8484        size_t srcGridSize = globalIndexSrcGrid[idx].size(); 
    85         globaIndexWeightFromDestToSource[(it->first)].reserve(srcGridSize); 
     85//        globaIndexWeightFromDestToSource[(it->first)].reserve(srcGridSize); 
     86        globaIndexWeightFromDestToSource[(it->first)].resize(srcGridSize); 
    8687        for (int i = 0; i < srcGridSize; ++i) 
    8788        { 
    88           globaIndexWeightFromDestToSource[(it->first)].push_back(make_pair(it->second, make_pair(globalIndexSrcGrid[idx][i], currentVecWeight[i]))); 
     89          globaIndexWeightFromDestToSource[(it->first)][i] = (make_pair(it->second, make_pair(globalIndexSrcGrid[idx][i], currentVecWeight[i]))); 
    8990        } 
    9091      } 
Note: See TracChangeset for help on using the changeset viewer.