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

Function _GetController

Wrapping/Python/vtkmodules/test/rtImageTest.py:12–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10import traceback
11
12def _GetController():
13 try:
14 from vtkmodules.vtkParallelMPI import vtkMPIController
15 controller = vtkMPIController();
16
17 # If MPI was not initialized, we do not want to use MPI
18 if not controller.GetCommunicator():
19 return None
20 return controller
21 except:
22 pass
23 return None
24
25def main(test_script):
26 """Run a regression test, and compare the contents of the window against

Callers 1

mainFunction · 0.70

Calls 2

vtkMPIControllerClass · 0.50
GetCommunicatorMethod · 0.45

Tested by

no test coverage detected