Commit 9b9e2c69c3f8b2b0ed436652d8feb109602b5623
1 parent
71249c7c
Exists in
master
and in
100 other branches
Fix #5391 - int parameter was written as a short parameter
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/ParamOutputImpl/Download/DownloadOutput.cc
... | ... | @@ -965,7 +965,7 @@ void DownloadOutput::visit(AMDA::Parameters::ParamDataScalaireInt *pParamData) |
965 | 965 | if (pParamData->getTime(index) > _currentTimeInterval->_stopTime) |
966 | 966 | return; |
967 | 967 | _fileWriter->writeTimeData(_currentParamId, pParamData->getTime(index), _downloadProperties.getTimeFormat(), isFirstParam); |
968 | - _fileWriter->writeShortData(_currentParamId,0,pParamData->get(index), _downloadProperties.getPrecision()); | |
968 | + _fileWriter->writeIntData(_currentParamId,0,pParamData->get(index), _downloadProperties.getPrecision()); | |
969 | 969 | _fileWriter->goToNextRecord(_currentParamId); |
970 | 970 | } |
971 | 971 | } |
... | ... | @@ -1123,7 +1123,7 @@ void DownloadOutput::visit(AMDA::Parameters::ParamDataTab1DInt *pParamData) |
1123 | 1123 | int varIndex = 0; |
1124 | 1124 | for (auto component : _paramsIndexList[_currentParamId]) |
1125 | 1125 | { |
1126 | - _fileWriter->writeShortData(_currentParamId,varIndex,pParamData->get(index)[component.getDim1Index()], _downloadProperties.getPrecision()); | |
1126 | + _fileWriter->writeIntData(_currentParamId,varIndex,pParamData->get(index)[component.getDim1Index()], _downloadProperties.getPrecision()); | |
1127 | 1127 | ++varIndex; |
1128 | 1128 | } |
1129 | 1129 | _fileWriter->goToNextRecord(_currentParamId); | ... | ... |