From 5aa3fb798142753688256ba492f12046a50136d6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 25 Oct 2022 16:51:05 +0800 Subject: [PATCH] Copy GAUSS_DATA key --- .../MEDReaderIO/vtkFileSeriesGroupReader.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Plugins/MEDReader/plugin/MEDReaderIO/vtkFileSeriesGroupReader.cxx b/src/Plugins/MEDReader/plugin/MEDReaderIO/vtkFileSeriesGroupReader.cxx index dbea2e4f..31d4702a 100644 --- a/src/Plugins/MEDReader/plugin/MEDReaderIO/vtkFileSeriesGroupReader.cxx +++ b/src/Plugins/MEDReader/plugin/MEDReaderIO/vtkFileSeriesGroupReader.cxx @@ -148,6 +148,13 @@ int vtkFileSeriesGroupReader::RequestData(vtkInformation* vtkNotUsed(request), this->Reader->UpdateTimeStep(time); vtkDataObject* outputReader = vtkMultiBlockDataSet::SafeDownCast(this->Reader->GetOutputDataObject(0))->GetBlock(0); output->SetBlock(iProc, outputReader); + + // Copy the GAUSS_DATA info key + vtkInformation* mInfo = this->Reader->GetOutputInformation(0); + if (mInfo->Has(vtkMEDReader::GAUSS_DATA())) + { + info->CopyEntry(mInfo, vtkMEDReader::GAUSS_DATA()); + } } else { @@ -183,6 +190,13 @@ int vtkFileSeriesGroupReader::RequestData(vtkInformation* vtkNotUsed(request), output->SetBlock(i + offFile, outputLeaf); } } + + // Copy the GAUSS_DATA info key for the last reader + vtkInformation* mInfo = this->Reader->GetOutputInformation(0); + if (mInfo->Has(vtkMEDReader::GAUSS_DATA())) + { + info->CopyEntry(mInfo, vtkMEDReader::GAUSS_DATA()); + } } return 1; } -- 2.39.2