----------------------------------------------------------------------------
| 265 | |
| 266 | //---------------------------------------------------------------------------- |
| 267 | int vtkIOSSWriter::RequestUpdateExtent(vtkInformation* vtkNotUsed(request), |
| 268 | vtkInformationVector** inputVector, vtkInformationVector* vtkNotUsed(outputVector)) |
| 269 | { |
| 270 | auto* info = inputVector[0]->GetInformationObject(0); |
| 271 | if (auto* controller = this->GetController()) |
| 272 | { |
| 273 | const int rank = controller->GetLocalProcessId(); |
| 274 | const int numRanks = controller->GetNumberOfProcesses(); |
| 275 | |
| 276 | info->Set(vtkStreamingDemandDrivenPipeline::UPDATE_PIECE_NUMBER(), rank); |
| 277 | info->Set(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES(), numRanks); |
| 278 | } |
| 279 | |
| 280 | auto& internals = (*this->Internals); |
| 281 | if (internals.CurrentTimeStepIndex >= 0 && |
| 282 | internals.CurrentTimeStepIndex < static_cast<int>(internals.TimeSteps.size())) |
| 283 | { |
| 284 | info->Set(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP(), |
| 285 | internals.TimeSteps[internals.CurrentTimeStepIndex]); |
| 286 | } |
| 287 | else |
| 288 | { |
| 289 | info->Remove(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP()); |
| 290 | } |
| 291 | |
| 292 | return 1; |
| 293 | } |
| 294 | |
| 295 | //---------------------------------------------------------------------------- |
| 296 | int vtkIOSSWriter::RequestData(vtkInformation* request, |
no test coverage detected