cffi for embedding (fortran): problem related to threads?
Created originally on Bitbucket by Anonymous
Hi,
I am using cffi to use the python dolfin package (from fenics) within a Fortran program. The python code get stuck at a position shown in the attachment, at "noslip.mark(sub_domains, 0)", if I use python 3.7. The problem disappears if python 3.6 is used instead.
A similar problem has been reported here, which is related to the new TSS API introduced in python 3.7 (https://docs.python.org/3/whatsnew/3.7.html#whatsnew37-pep539): : https://bitbucket.org/fenics-project/dolfin/issues/1035/subdomainmark-hangs-when-called-from The problem was solved by using a new version of pybind, compatible with python 3.7 TSS API.
I assume that cffi plays more or less the same role as pybind. Could my problem be related to a compatibility issue of cffi with python 3.7? I am not sure at all that the problem in on cffi side, it may be due to dolfin.
Thanks,
Thomas