FEniCS / ffcx

Next generation FEniCS Form Compiler for finite element forms
https://fenicsproject.org
Other
144 stars 38 forks source link

Use NumPy strings for scalar type #647

Closed garth-wells closed 7 months ago

garth-wells commented 7 months ago

Use float32, float64, complex64, complex128, etc, for scalar type.

This is simpler than pass the C type, e.g. float _Complex (easier to pass options without spaces) and improves readability. Will also support non-C backends.

Resolves #595.

coveralls commented 7 months ago

Coverage Status

coverage: 80.34% (+0.04%) from 80.302% when pulling b5dce89e74b041c7f5e1a1a271e2eba6c3136d0d on scalar-type-opt into 46a0abc2304e85e8ea032f46a49c913c4a0d2278 on main.

chrisrichardson commented 7 months ago

See Issue #595