Refactor preprocessing of forms and expressions

Issue #10 invalid
Martin Sandve Alnæs created an issue

Currently we have preprocess(form, ...) and preprocess_expression(expr, ...) which is used only by uflacs, but they both do mostly the same and can be merged with some refactoring. At the same time, the form signature should be computed from the form resulting from a canonical merging of integrals over subdomains. Currently this merging happens in the translation to integral_data and is thus not seen in preprocessed_form.

Work items:

  • Get rid of replacement of functions by using function mappings in ffc: TODO
  • Split integrals by subdomain id before signature is computed: TODO
  • Reuse preprocessing code between form and expression preprocess: TODO

Comments (2)

  1. Log in to comment