------------------------------------------------------------------------------
| 56 | |
| 57 | //------------------------------------------------------------------------------ |
| 58 | void vtkSubCommunicator::SetGroup(vtkProcessGroup* group) |
| 59 | { |
| 60 | vtkSetObjectBodyMacro(Group, vtkProcessGroup, group); |
| 61 | |
| 62 | if (this->Group) |
| 63 | { |
| 64 | this->LocalProcessId = this->Group->GetLocalProcessId(); |
| 65 | if (this->MaximumNumberOfProcesses != this->Group->GetNumberOfProcessIds()) |
| 66 | { |
| 67 | this->NumberOfProcesses = this->MaximumNumberOfProcesses = |
| 68 | this->Group->GetNumberOfProcessIds(); |
| 69 | } |
| 70 | } |
| 71 | else |
| 72 | { |
| 73 | this->LocalProcessId = -1; |
| 74 | this->NumberOfProcesses = 0; |
| 75 | this->MaximumNumberOfProcesses = 0; |
| 76 | } |
| 77 | } |
| 78 | VTK_ABI_NAMESPACE_END |