From: Your Name Date: Tue, 25 Oct 2022 08:51:05 +0000 (+0800) Subject: Copy GAUSS_DATA key X-Git-Tag: V9_10_0b1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5aa3fb798142753;p=modules%2Fparavis.git Copy GAUSS_DATA key --- 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; }