MCPcopy Create free account
hub / github.com/Kitware/VTK / RequestUpdateExtent

Method RequestUpdateExtent

IO/IOSS/vtkIOSSWriter.cxx:267–293  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

265
266//----------------------------------------------------------------------------
267int 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//----------------------------------------------------------------------------
296int vtkIOSSWriter::RequestData(vtkInformation* request,

Callers 1

ProcessRequestMethod · 0.95

Calls 7

GetInformationObjectMethod · 0.80
GetNumberOfProcessesMethod · 0.80
GetControllerMethod · 0.45
GetLocalProcessIdMethod · 0.45
SetMethod · 0.45
sizeMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected