Changeset 912
- Timestamp:
- 08/03/16 15:49:10 (8 years ago)
- Location:
- XIOS/trunk/src/transformation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/axis_algorithm_interpolate.cpp
r896 r912 54 54 XIOSAlgorithms::sortWithIndex<double, CVectorStorage>(recvBuff, indexVec); 55 55 for (int i = 0; i < srcSize; ++i) valueSrc[i] = recvBuff[indexVec[i]]; 56 computeInterpolantPoint(valueSrc, i dx);56 computeInterpolantPoint(valueSrc, indexVec, idx); 57 57 } 58 58 } … … 64 64 \param [in] tranPos position of axis on a domain 65 65 */ 66 void CAxisAlgorithmInterpolate::computeInterpolantPoint(const std::vector<double>& axisValue, int transPos) 66 void CAxisAlgorithmInterpolate::computeInterpolantPoint(const std::vector<double>& axisValue, 67 const std::vector<int>& indexVec, 68 int transPos) 67 69 { 68 70 std::vector<double>::const_iterator itb = axisValue.begin(), ite = axisValue.end(); … … 117 119 { 118 120 int index = std::distance(itb, it); 119 interpolatingIndexValues[idx+ibegin].push_back(make_pair(index ,*it));121 interpolatingIndexValues[idx+ibegin].push_back(make_pair(indexVec[index],*it)); 120 122 } 121 123 } -
XIOS/trunk/src/transformation/axis_algorithm_interpolate.hpp
r896 r912 33 33 void retrieveAllAxisValue(const CArray<double,1>& axisValue, const CArray<bool,1>& axisMask, 34 34 std::vector<double>& recvBuff, std::vector<int>& indexVec); 35 void computeInterpolantPoint(const std::vector<double>& recvBuff, int transPos = 0);35 void computeInterpolantPoint(const std::vector<double>& recvBuff, const std::vector<int>&, int transPos = 0); 36 36 void computeWeightedValueAndMapping(const std::map<int, std::vector<std::pair<int,double> > >& interpolatingIndexValues, int transPos = 0); 37 37 void fillInAxisValue(std::vector<CArray<double,1> >& vecAxisValue,
Note: See TracChangeset
for help on using the changeset viewer.