]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Ready for 4.2
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 6 Oct 2014 07:00:02 +0000 (09:00 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 6 Oct 2014 07:00:02 +0000 (09:00 +0200)
src/Plugins/ParaMEDCorba/vtkParaMEDCorbaSource.cxx

index 807b4f64deefc9a484e44967bf3a99bbbea9b6ce..8dc111428f96f0ca4e29d05d00d93e95b4744283 100644 (file)
@@ -178,6 +178,7 @@ int vtkParaMEDCorbaSource::RequestInformation(vtkInformation* request, vtkInform
       delete iorTab;
       CORBA::release(objPara);
     }
+    //myInfo->Set(CAN_HANDLE_PIECE_REQUEST(), 1);
     myInfo->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),this->TotalNumberOfPieces);
   }
   return 1;
@@ -188,11 +189,10 @@ int vtkParaMEDCorbaSource::RequestData(vtkInformation* request, vtkInformationVe
   vtkInformation *outInfo=outputVector->GetInformationObject(0);
   //
   this->UpdatePiece = vtkStreamingDemandDrivenPipeline::GetUpdatePiece(outInfo);
-  this->NumberOfPieces = outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES());
+  this->NumberOfPieces = vtkStreamingDemandDrivenPipeline::GetUpdateNumberOfPieces(outInfo);
   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()))