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

Fixes the discontinuous lagrange reference coords dispatch #559

Merged
merged 3 commits into from
Dec 15, 2022

Conversation

koehlerson
Copy link
Member

No description provided.

Comment on lines +160 to +166
function reference_coordinates(ip::DiscontinuousLagrange{2,RefTetrahedron,0})
return [Vec{2,Float64}((1/3,1/3))]
end

function reference_coordinates(ip::DiscontinuousLagrange{3,RefTetrahedron,0})
return [Vec{3,Float64}((1/4,1/4,1/4))]
end
Copy link
Member

Choose a reason for hiding this comment

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

We had a general solution via ntuple, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

no :D that's 1:1 the piece of code of the other branch

@fredrikekre fredrikekre reopened this Dec 15, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 15, 2022

Codecov Report

Base: 92.93% // Head: 92.91% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (f3ab4e4) compared to base (570b3b5).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #559      +/-   ##
==========================================
- Coverage   92.93%   92.91%   -0.02%     
==========================================
  Files          24       24              
  Lines        3978     3982       +4     
==========================================
+ Hits         3697     3700       +3     
- Misses        281      282       +1     
Impacted Files Coverage Δ
src/interpolations.jl 91.48% <100.00%> (+0.09%) ⬆️
src/Grid/grid.jl 86.99% <0.00%> (-0.31%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@fredrikekre
Copy link
Member

Add a test? :)

@termi-official
Copy link
Member

I already tried a bit of stuff to test interpolations, but I cannot find a good angle. Do you have something in mind how we can improve interpolation testing @fredrikekre ?

@fredrikekre
Copy link
Member

fredrikekre commented Dec 15, 2022

Even some silly test like

@test reference_coordinates(DiscontinuousLagrange{3,RefTetrahedron,0}()) ≈ [Vec{3,Float64}((1/4,1/4,1/4))]

is useful to catch regressions IMO.

@fredrikekre fredrikekre merged commit 0ce4cad into master Dec 15, 2022
@fredrikekre fredrikekre deleted the mk/discontinuoustriangle branch December 15, 2022 19:36
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.

4 participants