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

Function NGS_PythonShell

solve/ngsolve.cpp:535–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533
534
535int NGS_PythonShell (ClientData clientData,
536 Tcl_Interp * interp,
537 int argc, const char *argv[])
538{
539 if(!netgen::netgen_executable_started) {
540 Ng_Tcl_SetResult (interp, (char*)"This feature is not available when running from Python", NG_TCL_STATIC);
541 return NG_TCL_ERROR;
542 }
543#ifdef NGS_PYTHON
544 SpawnPython();
545 return NG_TCL_OK;
546#else
547 cerr << "Sorry, you have to compile ngsolve with Python" << endl;
548 return NG_TCL_ERROR;
549#endif
550}
551
552
553

Callers

nothing calls this directly

Calls 1

SpawnPythonFunction · 0.85

Tested by

no test coverage detected