From 1a3114495bc43ea0e68bca2c686bdba057aa344a Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 3 Oct 2014 17:37:31 +0200 Subject: [PATCH] For the moment MAXIMUM_NUMBER_OF_PIECES can't be removed --- src/Plugins/ParaMEDCorba/vtkParaMEDCorbaSource.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Plugins/ParaMEDCorba/vtkParaMEDCorbaSource.cxx b/src/Plugins/ParaMEDCorba/vtkParaMEDCorbaSource.cxx index cc72c1c3..807b4f64 100644 --- a/src/Plugins/ParaMEDCorba/vtkParaMEDCorbaSource.cxx +++ b/src/Plugins/ParaMEDCorba/vtkParaMEDCorbaSource.cxx @@ -178,7 +178,7 @@ int vtkParaMEDCorbaSource::RequestInformation(vtkInformation* request, vtkInform delete iorTab; CORBA::release(objPara); } - myInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES(),this->TotalNumberOfPieces); + myInfo->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),this->TotalNumberOfPieces); } return 1; } @@ -188,10 +188,11 @@ int vtkParaMEDCorbaSource::RequestData(vtkInformation* request, vtkInformationVe vtkInformation *outInfo=outputVector->GetInformationObject(0); // this->UpdatePiece = vtkStreamingDemandDrivenPipeline::GetUpdatePiece(outInfo); - this->NumberOfPieces = vtkStreamingDemandDrivenPipeline::GetUpdateNumberOfPieces(outInfo); + this->NumberOfPieces = outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES()); this->GhostLevel = vtkStreamingDemandDrivenPipeline::GetUpdateGhostLevel(outInfo); this->StartPiece=((this->UpdatePiece*this->TotalNumberOfPieces)/this->NumberOfPieces); this->EndPiece=(((this->UpdatePiece+1)*this->TotalNumberOfPieces)/this->NumberOfPieces); + std::cerr << " ### " << this->UpdatePiece << " 22-" << this->NumberOfPieces << " 33-" << this->StartPiece << "44-" << this->EndPiece << std::endl; vtkMultiBlockDataSet *ret0=vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())); double reqTS = 0; if(outInfo->Has(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP())) -- 2.39.2