MCPcopy Create free account
hub / github.com/NTNU-IHB/PythonFMU / Terminate

Method Terminate

src/pythonfmu/PySlaveInstance.cpp:293–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291 }
292
293 void Terminate() override
294 {
295 py_safe_run([this](PyGILState_STATE gilState) {
296 auto f = PyObject_CallMethod(pInstance_, "terminate", nullptr);
297 if (f == nullptr) {
298 handle_py_exception("[terminate] PyObject_CallMethod", gilState);
299 }
300 Py_DECREF(f);
301 clearLogBuffer();
302 });
303 }
304
305 void SetReal(const fmi2ValueReference* vr, std::size_t nvr, const fmi2Real* values) override
306 {

Callers 1

fmi2TerminateFunction · 0.80

Calls 1

py_safe_runFunction · 0.85

Tested by

no test coverage detected