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

Method SetController

IO/Parallel/vtkPChacoReader.cxx:38–53  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

36}
37//------------------------------------------------------------------------------
38void vtkPChacoReader::SetController(vtkMultiProcessController* c)
39{
40 if ((c == nullptr) || (c->GetNumberOfProcesses() == 0))
41 {
42 this->NumProcesses = 1;
43 this->MyId = 0;
44 }
45
46 vtkSetObjectBodyMacro(Controller, vtkMultiProcessController, c);
47
48 if (c)
49 {
50 this->NumProcesses = c->GetNumberOfProcesses();
51 this->MyId = c->GetLocalProcessId();
52 }
53}
54
55//------------------------------------------------------------------------------
56int vtkPChacoReader::RequestInformation(

Callers 15

vtkPChacoReaderMethod · 0.95
~vtkPChacoReaderMethod · 0.95
vtkPIOReaderMethod · 0.45
~vtkPIOReaderMethod · 0.45
vtkPDataSetWriterMethod · 0.45
~vtkPDataSetWriterMethod · 0.45
vtkPOpenFOAMReaderMethod · 0.45
~vtkPOpenFOAMReaderMethod · 0.45
TestPOpenFOAMReaderFunction · 0.45

Calls 2

GetNumberOfProcessesMethod · 0.80
GetLocalProcessIdMethod · 0.45

Tested by 3

TestPOpenFOAMReaderFunction · 0.36