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

Simplify initialization of types for N, dNdx, and dNdξ #858

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

fredrikekre
Copy link
Member

This patch simplifies the initialization of types for N, dNdx, and dNdξ used in the FunctionValues constructor. The change in LOC isn't significant but I think it is easier to follow when there are no auxiliary types and when they are grouped by "case" instead of function name. Fixes #857.

@codecov-commenter
Copy link

codecov-commenter commented Dec 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (324bd4a) 93.28% compared to head (d5d8c5a) 93.27%.
Report is 2 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #858      +/-   ##
==========================================
- Coverage   93.28%   93.27%   -0.01%     
==========================================
  Files          36       36              
  Lines        5228     5222       -6     
==========================================
- Hits         4877     4871       -6     
  Misses        351      351              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@termi-official termi-official left a comment

Choose a reason for hiding this comment

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

LGTM, but should we leave the issue open until mixed tensor support lands?

Copy link
Member

@KnutAM KnutAM left a comment

Choose a reason for hiding this comment

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

I think this can be merged as is.
The MixedTensor support is still some time in the future, and this is just an internal change to improve readability - I think this is much better than my solution.

(Hope I got the alignment right for the suggested help comments, hard to see in the web-browser)

src/FEValues/FunctionValues.jl Outdated Show resolved Hide resolved
src/FEValues/FunctionValues.jl Outdated Show resolved Hide resolved
This patch simplifies the initialization of types for `N`, `dNdx`, and
`dNdξ` used in the `FunctionValues` constructor. The change in LOC isn't
significant but I think it is easier to follow when there are no
auxiliary types and when they are grouped by "case" instead of function
name. Fixes #857.
@fredrikekre fredrikekre merged commit 5350d2d into master Dec 8, 2023
7 checks passed
@fredrikekre fredrikekre deleted the fe/dims branch December 8, 2023 09:02
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.

Simplify deduction of eltype in FunctionValues constructor
4 participants