FEniCS / FEniCS/dolfinx

Improve python partitioner callback interface

Open
#3,531 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.2k
Forks
261
Avg merge
1d 15h
Merged PRs (30d)
65

Description

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 https://github.com/FEniCS/dolfinx/pull/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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.