FEniCS/ffcx

Use numpy-like descriptions for scalar type in command line

Closed this issue · 3 comments

Instead of using C types, it would be neater to use numpy types for the scalar type, when needed.
e.g.
ffcx --scalar_type=complex128 Form.py rather than ffcx --scalar_type="double _Complex" Form.py

The translation to implementation scalar type would take place in the "C" language implementation part.

This will require changes in dolfinx and anywhere that calls ffcx with scalar type.

Note that some languages have sufficient templating to defer the choice of scalar. E.g. c++ or numba

Fixed in PR #647