Improvement: Add test for (rather new) function t8_forest_leaf_neighbor_subface - #2388
Open
spenke91 wants to merge 6 commits into
Open
Improvement: Add test for (rather new) function t8_forest_leaf_neighbor_subface#2388spenke91 wants to merge 6 commits into
spenke91 wants to merge 6 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2388 +/- ##
==========================================
+ Coverage 82.28% 82.36% +0.08%
==========================================
Files 125 125
Lines 20703 20709 +6
==========================================
+ Hits 17035 17057 +22
+ Misses 3668 3652 -16 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
lenaploetzke
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for adding the test, i have some first comments for you :)
Collaborator
Author
|
Thanks for your review, @lenaploetzke! I incorporated your suggestions 👍 |
lenaploetzke
left a comment
Collaborator
There was a problem hiding this comment.
Very nice, nearly ready to merge.
| [&] (t8_element *candidate) -> bool { | ||
| return scheme->element_compare (neighbor_tree_class, target_virtual_face_neighbor, candidate) == 0; | ||
| }); | ||
| T8_ASSERT (iter != neigh_children_at_face.end ()); // make sure target_virtual_face_neighbor was found |
Collaborator
There was a problem hiding this comment.
Maybe also better in relation to num_neighbor_face_children?
| const int is_family, const int num_elements, t8_element_t *elements[]); | ||
|
|
||
| /** | ||
| * Adapt callback that refines every n-th local element, where \a n is given as template parameter. |
Collaborator
There was a problem hiding this comment.
Oh nice idea! Also used a similar callback in a subelement PR with n=2, we can reuse it then ;)
| { | ||
| protected: | ||
| /** | ||
| * \brief Set the Up test suite. |
Collaborator
There was a problem hiding this comment.
haha
Suggested change
| * \brief Set the Up test suite. | |
| * \brief Set up the test suite. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2295
Describe your changes here:
Adds a test to the function t8_forest_leaf_neighbor_subface added in #2216 .
All these boxes must be checked by the AUTHOR before requesting review:
Documentation:,Bugfix:,Feature:,Improvement:orOther:.All these boxes must be checked by the REVIEWERS before merging the pull request:
As a reviewer please read through all the code lines and make sure that the code is fully understood, bug free, well-documented and well-structured.
General
Tests
If the Pull request introduces code that is not covered by the github action (for example coupling with a new library):
Scripts and Wiki
scripts/internal/find_all_source_files.shto check the indentation of these files.License
doc/(or already has one).