------------------------------------------------------------------------------ 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
| 212 | // called with index = 0, 1, .., NumberOfProcesses-1 to set up all the |
| 213 | // required user defined methods |
| 214 | void 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 | //------------------------------------------------------------------------------ |
| 230 | void vtkMultiProcessController::GetMultipleMethod( |