Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve python partitioner callback interface #3531

Open
schnellerhase opened this issue Nov 23, 2024 · 0 comments
Open

Improve python partitioner callback interface #3531

schnellerhase opened this issue Nov 23, 2024 · 0 comments

Comments

@schnellerhase
Copy link
Contributor

schnellerhase commented Nov 23, 2024

The python callbacks of a graph partitioner currently require a cpp return value type, so either AdjacencyList_int32 or AdjacencyList_int64. With the introduction of a general python wrapper for the adjacency list types in #3509 we should switch the return type of the python callback, that the user needs to implement, to the type oblivious AdjacencyList type.

See TODO at https://github.com/FEniCS/dolfinx/blob/main/python/test/unit/fem/test_dofmap.py#L439

One possible way to achieve this would be with a decorator, as suggested by @jhale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant