dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #22856
Dealing with incomplete UFL finite elements
-
To:
DOLFIN Mailing List <dolfin@xxxxxxxxxxxxxxxxxxx>
-
From:
"Garth N. Wells" <gnw20@xxxxxxxxx>
-
Date:
Wed, 27 Apr 2011 18:07:27 +0100
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110419 Thunderbird/3.1.9
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