Skip to content

Function to extract linear combination if present in ufl_expression #486

Description

@jorgensd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions