MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / MpiShell

Function MpiShell

python/__console.py:58–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57
58def MpiShell():
59 import code
60 try:
61 import readline
62 import rlcompleter
63 readline.parse_and_bind("tab:complete") # autocomplete
64 except:
65 try:
66 import pyreadline as readline
67 import rlcompleter
68 readline.parse_and_bind("tab:complete") # autocomplete
69 except:
70 print('readline not found')
71 vars2 = globals()
72 vars2.update(locals())
73 mshell = InteractiveMPIConsole(vars2)
74 mshell.interact()
75
76def startConsole(vars2):
77 try:

Callers

nothing calls this directly

Calls 2

interactMethod · 0.95

Tested by

no test coverage detected