------------------------------------------------------------------------------ Execute the method set as the SingleMethod.
| 231 | //------------------------------------------------------------------------------ |
| 232 | // Execute the method set as the SingleMethod. |
| 233 | void 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. |