FEniCS / FEniCS/dolfinx

Automatic type dispatching for python wrappers

Open
#3,543 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.2k
Forks
261
Avg merge
1d 19h
Merged PRs (30d)
71

Description

In https://github.com/FEniCS/dolfinx/pull/3542 it was commented by @jhale that the selection of `cpp`-types of python wrappers can be unified and should not require a custom handling in each wrapper.

Given a `dtype` and a list of exported `dtype`'s we are able to determine the underlying cpp-type programmatically or throw (if not exported/supported).

Wrapper classes that share this:
- `FiniteElement`
- `CoordinateElement`
- `DirichletBC`
- `Form`
- `Constant`
- `Function`
- `Expression`
- `FunctionSpace`
- `BoundingBoxTree`
- `AdjacencyList`
- `MatrixCSR`
- `Vector`
- (probably some more that were missed)

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.