← Back to team overview

dolfin team mailing list archive

Dealing with incomplete UFL finite elements

 

I'm starting here a new thread on how to deal with the recent change in
UFL that has broken a good number of DOLFIN demos. The previous thread
meandered and got side-tracked.

The framework in we need to operate is:

A. UFL will not allow forms to be modified post-construction.

B. It should be relatively easy to replace ufl.Coefficients in a form
and return a new form.

C. The issue with replacing ufl.Coefficients is that we lose DOLFIN data
(like the eval() functions) associated with the removed coefficients.


I'll kick off with the obvious solution:

1. Require that all DOLFIN Expressions are associated with a
ufl.FiniteElement.

Other solutions?

Garth



Follow ups