firedrakeproject / firedrake

Firedrake is an automated system for the portable solution of partial differential equations using the finite element method (FEM)
https://firedrakeproject.org
Other
482 stars 157 forks source link

Scaled zero form assembly bugfix #3600

Closed jrmaddison closed 4 weeks ago

jrmaddison commented 4 weeks ago

Scale by weights in BaseFormAssembler.base_form_assembly_visitor for the case of an arity 0 FormSum.

I have not attempted to ensure that the result is a ScalarType.type.

Fixes #3597