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

Method SetMultipleMethod

Parallel/Core/vtkMultiProcessController.cxx:214–227  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Set one of the user defined methods that will be run on NumberOfProcesses processes when MultipleMethodExecute is called. This method should be called with index = 0, 1, .., NumberOfProcesses-1 to set up all the required user defined methods

Source from the content-addressed store, hash-verified

212// called with index = 0, 1, .., NumberOfProcesses-1 to set up all the
213// required user defined methods
214void vtkMultiProcessController::SetMultipleMethod(int index, vtkProcessFunctionType f, void* data)
215{
216 // You can only set the method for 0 through NumberOfProcesses-1
217 if (index >= this->GetNumberOfProcesses())
218 {
219 vtkErrorMacro(<< "Can't set method " << index << " with a processes count of "
220 << this->GetNumberOfProcesses());
221 }
222 else
223 {
224 this->Internal->MultipleMethod[index] = f;
225 this->Internal->MultipleData[index] = data;
226 }
227}
228
229//------------------------------------------------------------------------------
230void vtkMultiProcessController::GetMultipleMethod(

Callers 1

TestGenericCommunicatorFunction · 0.45

Calls 1

GetNumberOfProcessesMethod · 0.95

Tested by 1

TestGenericCommunicatorFunction · 0.36