From 606485f00c730d6ce5c88694bef122681203808e Mon Sep 17 00:00:00 2001 From: Francesco Ballarin Date: Thu, 1 Sep 2022 21:24:42 +0200 Subject: [PATCH] Fix segmentation fault introduced in 78dfd10: missing local variable name was causing the global variable to be used --- libsrc/occ/python_occ.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/occ/python_occ.cpp b/libsrc/occ/python_occ.cpp index d75958ce..d7464b95 100644 --- a/libsrc/occ/python_occ.cpp +++ b/libsrc/occ/python_occ.cpp @@ -251,7 +251,7 @@ DLL_HEADER void ExportNgOCC(py::module &m) }, py::call_guard()) .def("GenerateMesh", [](shared_ptr geo, MeshingParameters* pars, NgMPI_Comm comm, - shared_ptr, py::kwargs kwargs) + shared_ptr mesh, py::kwargs kwargs) { MeshingParameters mp; OCCParameters occparam;