Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

composed map: add permute to kwarg #723

Merged
merged 3 commits into from
Jun 18, 2024
Merged

Conversation

ksagiyam
Copy link
Contributor

@ksagiyam ksagiyam commented Jun 14, 2024

firedrakeproject/firedrake#3634

I found this bug when using the submesh branch with BCs on vector components. It is hard to test with our current usage of ComposedMap in Firedrake. I wonder this can just go in.

@ksagiyam ksagiyam requested a review from connorjward June 14, 2024 14:21
connorjward
connorjward previously approved these changes Jun 14, 2024
Copy link
Collaborator

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

Looks fine to me. Happy for this to be merged assuming Firedrake tests pass.

@ksagiyam
Copy link
Contributor Author

Actually, a pyop2 test failed, which suggested a better fix. Could you have a look again?

@ksagiyam
Copy link
Contributor Author

Rerunning Firedrake CI.

Copy link
Collaborator

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

I feel like lambdas as properties must be some sort of anti-pattern. Otherwise no issue and definitely better than before.

pyop2/codegen/builder.py Outdated Show resolved Hide resolved
pyop2/codegen/builder.py Outdated Show resolved Hide resolved
ksagiyam and others added 2 commits June 14, 2024 20:59
@ksagiyam
Copy link
Contributor Author

Indeed. Rerunning Firedrake CI.

@connorjward connorjward merged commit 5f18075 into master Jun 18, 2024
4 checks passed
@connorjward connorjward deleted the ksagiyam/fix_composed_map branch June 18, 2024 09:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants