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

Allow periodicity for very basic meshes #16

Merged
merged 10 commits into from
Feb 26, 2024

Conversation

bennibolm
Copy link
Collaborator

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Feb 23, 2024

Codecov Report

Attention: Patch coverage is 99.21875% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 99.44%. Comparing base (140b1b0) to head (2bb11a9).

Files Patch % Lines
src/Smesh.jl 99.21% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              main      #16      +/-   ##
===========================================
- Coverage   100.00%   99.44%   -0.56%     
===========================================
  Files            2        2              
  Lines           55      180     +125     
===========================================
+ Hits            55      179     +124     
- Misses           0        1       +1     

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

@bennibolm bennibolm closed this Feb 26, 2024
@bennibolm bennibolm reopened this Feb 26, 2024
Comment on lines +21 to +40
@testset "non-periodic" begin
neighbors = delaunay_compute_neighbors(data_points, vertices)
@test neighbors == [6 4 2 0 6 1;
4 3 5 1 0 0;
0 0 0 2 3 5]
end
@testset "periodic" begin
neighbors = delaunay_compute_neighbors(data_points, vertices, periodicity = (true, false))
@test neighbors == [6 4 2 3 6 1;
4 3 5 1 1 0;
5 0 4 2 3 5]
neighbors = delaunay_compute_neighbors(data_points, vertices, periodicity = (false, true))
@test neighbors == [6 4 2 0 6 1;
4 3 5 1 0 2;
0 6 0 2 3 5]
neighbors = delaunay_compute_neighbors(data_points, vertices, periodicity = (true, true))
@test neighbors == [6 4 2 3 6 1;
4 3 5 1 1 2;
5 6 4 2 3 5]
end
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

To cover mostly everything in the test, the unit tests became a bit longer. But I don't have an idea to shorten this.

src/Smesh.jl Show resolved Hide resolved
@bennibolm
Copy link
Collaborator Author

@sloede Do you have any idea why the tests don't appear to have started, but have actually already run, as you can see if you look at the Checks tab or press on the red X on the last commit?
I mean here it it no problem and I will merge the PR anyway, but I'm just wondering.

@sloede
Copy link
Member

sloede commented Feb 26, 2024

@sloede Do you have any idea why the tests don't appear to have started, but have actually already run, as you can see if you look at the Checks tab or press on the red X on the last commit? I mean here it it no problem and I will merge the PR anyway, but I'm just wondering.

No, but I've seen this weird behavior before in other PRs in the trixi framework org. Dunno what's causing this...

@bennibolm
Copy link
Collaborator Author

@sloede Do you have any idea why the tests don't appear to have started, but have actually already run, as you can see if you look at the Checks tab or press on the red X on the last commit? I mean here it it no problem and I will merge the PR anyway, but I'm just wondering.

No, but I've seen this weird behavior before in other PRs in the trixi framework org. Dunno what's causing this...

Okay, thanks anyway.

@bennibolm bennibolm merged commit 1bd3b26 into trixi-framework:main Feb 26, 2024
9 of 10 checks passed
@bennibolm bennibolm deleted the periodic branch February 26, 2024 15:52
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.

3 participants