Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libsrc/core/python_ngcore.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define NETGEN_CORE_PYTHON_NGCORE_HPP

#include "ngcore_api.hpp" // for operator new
#include <pybind11/embed.h>
#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <pybind11/numpy.h>
Expand Down
1 change: 1 addition & 0 deletions ng/ngappinit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ int main(int argc, char ** argv)
Tk_MainLoop();
Tcl_DeleteInterp (myinterp);
#ifdef NETGEN_PYTHON
py::scoped_interpreter guard{};
py::gil_scoped_acquire ensure_gil;
#endif

Expand Down