IvanYashchuk / fecr

Easy interoperability with Automatic Differentiation libraries through NumPy interface to Firedrake and FEniCS
MIT License
14 stars 1 forks source link

Remove numpy.float64 dtype restriction #15

Closed IvanYashchuk closed 1 year ago

IvanYashchuk commented 1 year ago

Previously it was hardcoded that we do the conversion only with numpy.float64 dtype. Now it's just that type of the template function and provided NumPy array should match and dtype check is deferred to PyOP2.

It helps with https://github.com/IvanYashchuk/fecr/issues/14, we still need CI with a build of PETSc with complex numbers support.