FEniCS / ffcx

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

Write the quadrature rule of quadrature elements into generated code #634

Closed mscroggs closed 9 months ago

mscroggs commented 9 months ago

Required by https://github.com/FEniCS/dolfinx/pull/2878.

Progress towards https://github.com/FEniCS/dolfinx/issues/1546

coveralls commented 9 months ago

Coverage Status

coverage: 79.915% (+0.2%) from 79.737% when pulling c0e163805e574d22cf282df1e77bd23f7d360e3b on mscroggs/quadrature-element into dfc6a7cf8957065065181a73817ab49c4d51cbba on main.

jorgensd commented 9 months ago

This is a really good step towards providing the option to switch in custom quadrature rules in the element tabulation. Ref what @IgorBaratta is working on with having more graph-structures on the generated code one could envision a workflow:

  1. Supply custom quadrature rules to FFCx
  2. Feed these quadrature rules into element tabulation (I guess we need a C interface for basix for this)
  3. Feed the tabulated elements into an integration kernel.

This would allow for things such as cutfem quite nicely!