t8code icon indicating copy to clipboard operation
t8code copied to clipboard

Feature element boundary [3/3]

Open holke opened this issue 1 year ago • 2 comments

Describe your changes here:

Implemented a function to check whether a leaf element is at the domain boundary or not. We need to take special care with forests with holes, since these forests have inner boundaries.

Currently draft since we need to implement a test case.

Merge after #1079 and #1080

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

  • [ ] The reviewer executed the new code features at least once and checked the results manually

  • [ ] The code follows the t8code coding guidelines

  • [ ] New source/header files are properly added to the Makefiles

  • [ ] The code is well documented

  • [ ] All function declarations, structs/classes and their members have a proper doxygen documentation

  • [ ] All new algorithms and data structures are sufficiently optimal in terms of memory and runtime (If this should be merged, but there is still potential for optimization, create a new issue)

Tests

  • [ ] The code is covered in an existing or new test case using Google Test

Github action

  • [ ] The code compiles without warning in debugging and release mode, with and without MPI (this should be executed automatically in a github action)

  • [ ] All tests pass (in various configurations, this should be executed automatically in a github action)

    If the Pull request introduces code that is not covered by the github action (for example coupling with a new library):

    • [ ] Should this use case be added to the github action?
    • [ ] If not, does the specific use case compile and all tests pass (check manually)

Scripts and Wiki

  • [ ] If a new directory with source-files is added, it must be covered by the script/find_all_source_files.scp to check the indentation of these files.
  • [ ] If this PR introduces a new feature, it must be covered in an example/tutorial and a Wiki article.

Licence

  • [ ] The author added a BSD statement to doc/ (or already has one)

holke avatar Jun 05 '24 13:06 holke

Ready for review - i added a test case.

holke avatar Jun 19 '24 14:06 holke

Is now ready for re-review.

holke avatar Jul 18 '24 14:07 holke

Found the bug, tests should pass now.

holke avatar Oct 18 '24 09:10 holke

This branch still needs to be adapted to the new interface

lukasdreyer avatar Jan 20 '25 16:01 lukasdreyer

Updated to newest main. In particular the new scheme structure.

holke avatar May 09 '25 10:05 holke

Should be finished. I currently cannot verify via the CI since the package update step fails with a 404 error. Is probably resolved in a few hours.

holke avatar May 26 '25 12:05 holke

Codecov Report

Attention: Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.

Project coverage is 74.04%. Comparing base (0acc724) to head (fd174b1).

Files with missing lines Patch % Lines
src/t8_forest/t8_forest.cxx 94.73% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1081      +/-   ##
==========================================
+ Coverage   74.02%   74.04%   +0.01%     
==========================================
  Files          98       98              
  Lines       18577    18595      +18     
==========================================
+ Hits        13751    13768      +17     
- Misses       4826     4827       +1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar May 28 '25 09:05 codecov[bot]

Codecov Report

Attention: Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.

Project coverage is 74.04%. Comparing base (dfaecea) to head (cf4057e). Report is 4 commits behind head on main.

Files with missing lines Patch % Lines src/t8_forest/t8_forest.cxx 94.73% 1 Missing ⚠️ Additional details and impacted files

☔ View full report in Codecov by Sentry. 📢 Have feedback on the report? Share it here. 🚀 New features to boost your workflow:

This is the line that is not covered by tests:

SC_ABORT ("This forest has holes and a computation of boundary elements is not supported. Once "
             "https://github.com/DLR-AMR/t8code/issues/825 is resolved, the function will be available.\n");

Since it is a) hard to test at all and b) quite obvious that this line does what it says, i believe we do not need to test it.

holke avatar Jun 02 '25 08:06 holke