Skip to content

Add ufl.action for MixedFunctionSpace - #351

Merged
jorgensd merged 34 commits into
mainfrom
dokken/mixedfs-action
Mar 7, 2025
Merged

jorgensd merged 34 commits into
mainfrom
dokken/mixedfs-action

Conversation

@jorgensd

Copy link
Copy Markdown
Member

Extending #350, such that we can use ufl.action on forms from MixedFunctionSpace.

Comment thread ufl/algorithms/formtransformations.py Outdated

@cdaversin cdaversin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :)
Just out of curiosity : In the standard case (not MixedFunctionSpace), we pick the last argument : u = arguments[-1].
For a MixedFunctionSpace, we choose the argument a which has the maximal a.number(). Why don't we just choose arguments[-1] from the highest arity form ?

Comment thread ufl/algorithms/formtransformations.py Outdated
Comment thread ufl/algorithms/formtransformations.py Outdated
@jorgensd

jorgensd commented Mar 7, 2025

Copy link
Copy Markdown
Member Author

Looks good to me :) Just out of curiosity : In the standard case (not MixedFunctionSpace), we pick the last argument : u = arguments[-1]. For a MixedFunctionSpace, we choose the argument a which has the maximal a.number(). Why don't we just choose arguments[-1] from the highest arity form ?

Multiple arguments (one per part of the mixed space)

Base automatically changed from dokken/update_extraction to main March 7, 2025 19:55
Comment thread ufl/algorithms/formsplitter.py Outdated
@jorgensd
jorgensd enabled auto-merge March 7, 2025 20:12
@jorgensd
jorgensd added this pull request to the merge queue Mar 7, 2025
Merged via the queue into main with commit 5d249b0 Mar 7, 2025
@jorgensd
jorgensd deleted the dokken/mixedfs-action branch March 7, 2025 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants