| 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 | { |
no test coverage detected