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

Method SetGroup

Parallel/Core/vtkSubCommunicator.cxx:58–77  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

56
57//------------------------------------------------------------------------------
58void 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}
78VTK_ABI_NAMESPACE_END

Calls 1

GetLocalProcessIdMethod · 0.45

Tested by 7

TestComputePassUniformFunction · 0.64
TestComputePipelineFunction · 0.64
TestComputeTextureFunction · 0.64
TestComputePassFunction · 0.64
TestComputePassChainedFunction · 0.64