From 1395a8c0ab394535446d13f40ca14bae68bb0057 Mon Sep 17 00:00:00 2001 From: abn Date: Wed, 10 Sep 2014 13:35:28 +0200 Subject: [PATCH] Porting to PV4.2: porting MED related stuff. Property MAXIMUM_NUMBER_OF_PIECES doesn't exist anymore. --- src/Plugins/MEDReader/IO/vtkMEDReader.cxx | 2 +- src/Plugins/ParaMEDCorba/vtkParaMEDCorbaSource.cxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Plugins/MEDReader/IO/vtkMEDReader.cxx b/src/Plugins/MEDReader/IO/vtkMEDReader.cxx index 769e87a4..b6436d66 100644 --- a/src/Plugins/MEDReader/IO/vtkMEDReader.cxx +++ b/src/Plugins/MEDReader/IO/vtkMEDReader.cxx @@ -292,7 +292,7 @@ int vtkMEDReader::RequestInformation(vtkInformation *request, vtkInformationVect try { vtkInformation *outInfo(outputVector->GetInformationObject(0)); - outInfo->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),-1); + //outInfo->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),-1); outInfo->Set(vtkDataObject::DATA_TYPE_NAME(),"vtkMultiBlockDataSet"); this->UpdateSIL(outInfo); // diff --git a/src/Plugins/ParaMEDCorba/vtkParaMEDCorbaSource.cxx b/src/Plugins/ParaMEDCorba/vtkParaMEDCorbaSource.cxx index 7e5c1deb..3ab2d5c7 100644 --- a/src/Plugins/ParaMEDCorba/vtkParaMEDCorbaSource.cxx +++ b/src/Plugins/ParaMEDCorba/vtkParaMEDCorbaSource.cxx @@ -178,7 +178,8 @@ int vtkParaMEDCorbaSource::RequestInformation(vtkInformation* request, vtkInform delete iorTab; CORBA::release(objPara); } - myInfo->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),this->TotalNumberOfPieces); + // This vtkInformationRequestKey is no more present in PV4.2 + //myInfo->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),this->TotalNumberOfPieces); } return 1; } -- 2.39.2