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

Method SingleMethodExecute

Parallel/MPI/vtkMPIController.cxx:233–253  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Execute the method set as the SingleMethod.

Source from the content-addressed store, hash-verified

231//------------------------------------------------------------------------------
232// Execute the method set as the SingleMethod.
233void vtkMPIController::SingleMethodExecute()
234{
235 if (!vtkMPIController::Initialized)
236 {
237 vtkWarningMacro("MPI has to be initialized first.");
238 return;
239 }
240
241 if (this->GetLocalProcessId() < this->GetNumberOfProcesses())
242 {
243 if (this->SingleMethod)
244 {
245 vtkMultiProcessController::SetGlobalController(this);
246 (this->SingleMethod)(this, this->SingleData);
247 }
248 else
249 {
250 vtkWarningMacro("SingleMethod not set.");
251 }
252 }
253}
254
255//------------------------------------------------------------------------------
256// Execute the methods set as the MultipleMethods.

Callers 2

TestProcessFunction · 0.45

Calls 2

GetNumberOfProcessesMethod · 0.80
GetLocalProcessIdMethod · 0.45

Tested by 2

TestProcessFunction · 0.36