Commit 0f74a96a4cff2b15e4ee83d4fcc81522911f75a3
1 parent
2e4486b0
Exists in
amdadev_test
and in
1 other branch
creecting 2d one rage bug
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
src/ExternLib/table_range_indexes/AllTableRange.hh
@@ -113,7 +113,9 @@ namespace AMDA { | @@ -113,7 +113,9 @@ namespace AMDA { | ||
113 | ++_index) { | 113 | ++_index) { |
114 | double crtTime = _paramInput.getTime(_index); | 114 | double crtTime = _paramInput.getTime(_index); |
115 | Tab2DData<DataType> inputElt = _paramInput.get(_index); | 115 | Tab2DData<DataType> inputElt = _paramInput.get(_index); |
116 | - std::list<unsigned int> indexes = _tableTool.getIndexesList(crtTime, inputElt.size()); | 116 | + std::list<unsigned int> indexes; |
117 | + (_tableRelatedDim == 0) ? indexes = _tableTool.getIndexesList(crtTime, inputElt.getDim1Size()) : | ||
118 | + indexes = _tableTool.getIndexesList(crtTime, inputElt.getDim2Size()); | ||
117 | 119 | ||
118 | Tab2DData<DataType> outputElt = TableTools::tools<DataType>::allValues(inputElt, indexes.front(), indexes.back(), _tableRelatedDim); | 120 | Tab2DData<DataType> outputElt = TableTools::tools<DataType>::allValues(inputElt, indexes.front(), indexes.back(), _tableRelatedDim); |
119 | _paramOutput->pushTime(crtTime); | 121 | _paramOutput->pushTime(crtTime); |