FEniCS / ufl

UFL - Unified Form Language
https://fenicsproject.org
GNU Lesser General Public License v3.0
97 stars 64 forks source link

Make cofunctionals terminal, and test #300

Open dham opened 1 month ago

dham commented 1 month ago

When taking derivatives with respect to a Cofunction, ufl ends up creating ExprList objects containing cofunctions. Equality (==) then fails on the ExprList because the Cofunction is not identified as a terminal. This fixes that and puts in a test.

Also adds unicode methods for a couple of missing things that were hit along the way. The whole unicode conversion is untested and I'm not proposing to fix that here.