Overload UFL TestFunction and TrialFunction in MCFC and introduce a convenience constructor which allows construction of a test/trial function from a Coefficient.
This is a convenience shorthand notation allowing the following:
# c is a Coefficient (i.e. a field over some element) we got from an external source
u = TrialFunction(c)
v = TestFunction(c)
which would construct test and trial functions living on the same element / function space as the Coefficient c.
Currently one needs to write (more cumbersome):
u = TrialFunction(c.element())
v = TestFunction(c.element())
Note: this was proposed as a UFL blueprint but declined. Hence we should at the feature to MCFC.
Overload UFL
TestFunction
andTrialFunction
in MCFC and introduce a convenience constructor which allows construction of a test/trial function from aCoefficient
.This is a convenience shorthand notation allowing the following:
which would construct test and trial functions living on the same element / function space as the
Coefficient
c.Currently one needs to write (more cumbersome):
Note: this was proposed as a UFL blueprint but declined. Hence we should at the feature to MCFC.