Conversation
…re-element_boundary
|
Ready for review - i added a test case. |
| /* forest_commit does not support empty cmeshes, we skip this case */ | ||
| GTEST_SKIP (); | ||
| } | ||
| /* Build the default scheme (TODO: Test this with all schemes) */ |
There was a problem hiding this comment.
Please parameterize this test, so that all scheme collections can be tested, once the standalone scheme with types is available.
Or ask @ole-alb to do so, he has done this a few times.
| * \return True (non-zero) if face \a face of \a leaf lies at the domain boundary. | ||
| */ | ||
| int | ||
| t8_forest_leaf_is_boundary (const t8_forest_t forest, t8_locidx_t local_tree, const t8_element_t *leaf, int face); |
There was a problem hiding this comment.
I think our current convention is to mark passed-by-value variables as const in header and implementation, if they are not adjusted inside the function.
I am unsure about the advantages of including the const in the header, but please include it at least in the implementation
There was a problem hiding this comment.
i included it in the header and the implementation.
|
Should be finished. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1081 +/- ##
==========================================
+ Coverage 78.27% 78.29% +0.01%
==========================================
Files 114 114
Lines 19101 19119 +18
==========================================
+ Hits 14952 14969 +17
- Misses 4149 4150 +1 ☔ View full report in Codecov by Sentry. 🚀 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. |
|
Merged with main. |
Closes #1630
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.
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
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):
Scripts and Wiki
script/find_all_source_files.scpto check the indentation of these files.Licence
doc/(or already has one)