ikarus-project / ikarus

Ikarus is a C++-based library that uses DUNE modules to solve partial differential equations with the finite element method and more.
https://ikarus-project.github.io/
Other
5 stars 3 forks source link

Fix python bindings when using clang #314

Closed rath3t closed 2 weeks ago

rath3t commented 1 month ago

Currently the bindings only work with gcc but clang fails with:

ImportError: Unable to cast Python instance of type <class 'dune.typeregistry._typeregistry.TypeRegistry'> to C++ type 'Dune::Python::detail::TypeRegistry'

The reason there is that the compiler might not be correctly set for the bindings from dune-common to _ikarus and the dune-ypmodule for the just-in-time compilation.

The fix might not be to hard but might takes some time.

Reference: https://gitlab.dune-project.org/core/dune-common/-/issues/237