-
Notifications
You must be signed in to change notification settings - Fork 63
Feature: extend leaf face neighbor to non-balanced forests and ghosts [N/N] #1736
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added an extra file to reuse adaptation callbacks in tests.
This could be an extra PR as well, if you think so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adressed in #1972
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #1958
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #1714
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #1714
|
I am taking this out of draft and into review now :) I split this up in multiple PRs that should be merged before this one. I will still implement one feature, namely being able to compute face neighbors if no ghost was created. |
|
It is now possible to compute the face neighbor if the forest has no ghost (then no neighbor are found for process boundary elements). |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1736 +/- ##
==========================================
+ Coverage 75.66% 76.69% +1.02%
==========================================
Files 105 105
Lines 18646 18852 +206
==========================================
+ Hits 14109 14459 +350
+ Misses 4537 4393 -144 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…to feature-extend_lfn_to_ghosts
Closes #1737 and closes #1299
Disclaimer
This PR is not 2k lines as it shows currently.
It is based on many changes that are parts of different PRs but until these are not merged, their lines will show up in the count here.
I listed all the PRs below and also marked the sections that do not need review in the "Files Changed" tab.
Describe your changes here:
This has gotten quite large and will be split up and take some time.I am putting this up here now to start the review early.
I would like to have a review on this because the algorithm is now working.The review can focus mostly on the leaf_face_neighbor functionality.
It is still in draft status, because
a) there is still low-level functionality missing to make this work on all element shapesb) i will split this up into multiple PRs eventually
c) not all tests pass, due to missing low-level functionality
Here is an overview over the exsiting PRs that cover changes from this one.
So a review of this PR can exclude all the listed once below:
Merge #1301 first (t8_element_array_find, t8_forest_element_is_leaf_or_ghost, t8_forest_tree_is_ghost, t8_forest_element_is_ghost)
Description
This PR extends the leaf face neighbor computation in two ways simultaneously:
a) extend it to ghosts, thus we can compute neighbors of ghosts and neighbors that are ghosts
b) extend it to non-balanced forests. So far a 2:1 condition was required, this is no longer the case.
The main contributions are
implemented while the lfn function did not work for adaptive forests, need to check whether to extend this function to all forests now) (Should be its own PR)
Edit:
The function was so far only tested for quads and hexes due to the missing face ancesor #1738. A first test with lines does fail - i need to investigate what is going on. (t8_gtest_face_neighbors/forest_face_neighbors.test_face_neighbors/t8_cmesh_new_from_class_Line_sc_MPI_COMM_WORLD_default)Edit2: It now works for all element shapes :)
What is still open to get this out of draft:
(see Feature: ancestor face computation function for the scheme #1958)
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
script/find_all_source_files.scpto check the indentation of these files.License
doc/(or already has one).