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

Additional Functionality for Subgrids #37

Merged
merged 8 commits into from
Feb 5, 2024
Merged

Additional Functionality for Subgrids #37

merged 8 commits into from
Feb 5, 2024

Conversation

chmerdon
Copy link
Member

@chmerdon chmerdon commented Feb 2, 2024

This PR adds additional subgrid functionality, namely:

  • CellParents, BFaceParents components already stored by subgrid generation
  • ParentGridRelation to determine if ParentGrid was created by subgrid (SubGrid or BoundarySubGrid) or one of the refinement produces (RefinedGrid)

When FaceNodes is instantiated for a grid that has a ParentGrid with SubGrid relation, first the FaceNodes of the parent grid are instantiated and then the faces that are also part of the subgrid are strided (and their node ids are remapped to the subgrid nodes ids) such that the orientation stays inline with the parent grid. Additionaly, FaceParents are stored to know the number of the subgrid faces in the parent grid.

Todo: if the new behavior is accepted, some tests should be added and EdgeNodes should get a similar behaviour; the refinement procedures currently store CellParents, but should also store BFaceParents for consistent behaviour (one could also think if one wants to have a certain FaceNodes behaviour for grids that are RefinedGrids of their parent grid, but I currently don't see the need for that)

Goal: correct management of finite element degrees of freedom for finite element spaces that are defined on subgrids in ExtendableFEMBase

…id (or probably also when the subgrid lies completely in the interior)
…completely interior region works (and it only does with the previous modifications)
…ceParents,

some of them are now directly set during subgrid or refinement routines
(todo: set BFaceParents also in refinements)
@codecov-commenter
Copy link

codecov-commenter commented Feb 2, 2024

Codecov Report

Attention: 20 lines in your changes are missing coverage. Please review.

Comparison is base (22bf6b1) 72.02% compared to head (53a3ccf) 72.99%.

Files Patch % Lines
src/adaptive_meshrefinements.jl 0.00% 14 Missing ⚠️
src/meshrefinements.jl 88.23% 4 Missing ⚠️
src/derived.jl 97.01% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #37      +/-   ##
==========================================
+ Coverage   72.02%   72.99%   +0.97%     
==========================================
  Files          26       26              
  Lines        4121     4236     +115     
==========================================
+ Hits         2968     3092     +124     
+ Misses       1153     1144       -9     

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

@j-fu j-fu merged commit 7699c8c into WIAS-PDELib:master Feb 5, 2024
11 checks passed
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