Typically, one would like to assign a linear combination of functions in the same function space to each other (for instance during time-stepping).
I encountered this when trying to get a DOLFINx Irksome implementation up and running:
firedrakeproject/Irksome#234
and in Legacy DOLFIN there is a rather large complicated section on this extraction:
https://bitbucket.org/fenics-project/dolfin/src/a8dcf753d3ab9ae19d7bedf8c634a4fe545032d2/python/dolfin/function/function.py?at=master#lines-37:177
Instead of repeating the same logic over and over in different implementations (legacy Dolfin, DOLFINx, firedrake) it would be nice to have this function native in UFL.
Typically, one would like to assign a linear combination of functions in the same function space to each other (for instance during time-stepping).
I encountered this when trying to get a DOLFINx Irksome implementation up and running:
firedrakeproject/Irksome#234
and in Legacy DOLFIN there is a rather large complicated section on this extraction:
https://bitbucket.org/fenics-project/dolfin/src/a8dcf753d3ab9ae19d7bedf8c634a4fe545032d2/python/dolfin/function/function.py?at=master#lines-37:177
Instead of repeating the same logic over and over in different implementations (legacy Dolfin, DOLFINx, firedrake) it would be nice to have this function native in UFL.