Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dof transform name updates #3149

Merged
merged 22 commits into from
Apr 21, 2024
Merged

Dof transform name updates #3149

merged 22 commits into from
Apr 21, 2024

Conversation

garth-wells
Copy link
Member

@garth-wells garth-wells commented Apr 19, 2024

Requires FEniCS/basix#807

@garth-wells garth-wells added this to the v0.8.0 milestone Apr 19, 2024
@@ -417,8 +425,7 @@ class FiniteElement
const std::function<void(std::span<U>, std::span<const std::uint32_t>,
std::int32_t, int)>
sub_function
= _sub_elements[0]->template dof_transformation_function<U>(
ttype);
= _sub_elements[0]->template dof_transformation_fn<U>(ttype);
Copy link
Member Author

Choose a reason for hiding this comment

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

@mscroggs This looks fishy (before and after the change). These lines are the only 'left-apply' functions in a function that is otherwise all 'right-apply'. What do you think it should be?

Copy link
Member

Choose a reason for hiding this comment

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

Most likely this:

Suggested change
= _sub_elements[0]->template dof_transformation_fn<U>(ttype);
= _sub_elements[0]->template dof_transformation_right_fn<U>(ttype);

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I'll take a closer look on Monday. I guess there's a good reason for not having the right that I need to re-work out and add a comment explaining

Copy link
Member Author

Choose a reason for hiding this comment

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

There are some more transforms that look fishy and there be some cancellation by two incorrect transforms - I'll make a separate PR to highlight.

@garth-wells garth-wells marked this pull request as ready for review April 21, 2024 07:23
@garth-wells garth-wells added this pull request to the merge queue Apr 21, 2024
Merged via the queue into main with commit 0decb9f Apr 21, 2024
23 checks passed
@garth-wells garth-wells deleted the garth/transform-name-updates branch April 21, 2024 08:54
jorgensd added a commit to jorgensd/adios4dolfinx that referenced this pull request Apr 23, 2024
jorgensd added a commit to jorgensd/adios4dolfinx that referenced this pull request Apr 23, 2024
* API updates relating to:
FEniCS/dolfinx#3149

* Updates due to: FEniCS/dolfinx#3119
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.

None yet

2 participants