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

Method SetNumberOfProcesses

Parallel/Core/vtkCommunicator.cxx:124–140  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

122
123//------------------------------------------------------------------------------
124void vtkCommunicator::SetNumberOfProcesses(int num)
125{
126 if (num == this->NumberOfProcesses)
127 {
128 return;
129 }
130
131 if (num < 1 || num > this->MaximumNumberOfProcesses)
132 {
133 vtkErrorMacro(<< num << " is an invalid number of processes try a number from 1 to "
134 << this->NumberOfProcesses);
135 return;
136 }
137
138 this->NumberOfProcesses = num;
139 this->Modified();
140}
141
142//------------------------------------------------------------------------------
143// Need to add better error checking

Callers 5

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
TestPStreamFunction · 0.45

Calls 1

ModifiedMethod · 0.45

Tested by 2

TestPStreamFunction · 0.36