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

Method TriggerBreakRMIs

Parallel/Core/vtkMultiProcessController.cxx:582–603  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

580
581//------------------------------------------------------------------------------
582void vtkMultiProcessController::TriggerBreakRMIs()
583{
584 int idx, num;
585
586 if (this->BroadcastTriggerRMI == 1)
587 {
588 this->BroadcastTriggerRMIOnAllChildren(nullptr, 0, BREAK_RMI_TAG);
589 return;
590 }
591
592 if (this->GetLocalProcessId() != 0)
593 {
594 vtkErrorMacro("Break should be triggered from process 0.");
595 return;
596 }
597
598 num = this->GetNumberOfProcesses();
599 for (idx = 1; idx < num; ++idx)
600 {
601 this->TriggerRMI(idx, nullptr, 0, BREAK_RMI_TAG);
602 }
603}
604
605//------------------------------------------------------------------------------
606int vtkMultiProcessController::ProcessRMIs()

Calls 4

GetLocalProcessIdMethod · 0.95
GetNumberOfProcessesMethod · 0.95
TriggerRMIMethod · 0.95