]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
For the moment MAXIMUM_NUMBER_OF_PIECES can't be removed
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 3 Oct 2014 15:37:31 +0000 (17:37 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 3 Oct 2014 15:37:31 +0000 (17:37 +0200)
src/Plugins/ParaMEDCorba/vtkParaMEDCorbaSource.cxx

index cc72c1c34b5e7984f0f6e7b36fcb538b625be9a6..807b4f64deefc9a484e44967bf3a99bbbea9b6ce 100644 (file)
@@ -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()))