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

Method exec

ngstd/python_ngstd.hpp:101–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 virtual void exec(const string s)
102 {
103 try{
104 PyRun_SimpleString(s.c_str());
105 }
106 catch (py::error_already_set const &e) {
107 cout << "caught python error: " << e.what() << endl;
108 PyErr_Print();
109 }
110 }
111
112 virtual void exec_file(const string fstr) {
113 string output;

Callers 5

SpawnPythonFunction · 0.80
NGS_LoadPyFunction · 0.80
NGSolve_InitFunction · 0.80
Parallel_InitPythonFunction · 0.80
NGS_ParallelRunFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected