-
Notifications
You must be signed in to change notification settings - Fork 63
Feature: Add element and user data to mesh handle #2005
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
Open
lenaploetzke
wants to merge
27
commits into
main
Choose a base branch
from
handle_element-data
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
e5051fd
pack competences into one class
lenaploetzke 1701534
rm assert committed in the test
lenaploetzke 27fcc41
Not working: implement user data
lenaploetzke df0353c
fix error
lenaploetzke 9b272a9
Merge branch 'handle-neighbor-and-ghost' into handle_element-data
lenaploetzke b3dc96e
added test
lenaploetzke 58559f3
implement get_volume with cache
lenaploetzke 8d94a95
add check for ghost test that we actually test smth
lenaploetzke e7934cc
add element data functionality
lenaploetzke a1cabed
rename test
lenaploetzke 5119d03
adapt cmake
lenaploetzke 7c57b3e
Merge branch 'main' into handle_element-data
lenaploetzke 08f6e26
Merge branch 'handle-neighbor-and-ghost' into handle_element-data
lenaploetzke 98a96da
Merge branch 'handle-neighbor-and-ghost' into handle_element-data
lenaploetzke c2a78f5
resolve doxygen warnings
lenaploetzke 16c9687
Merge branch 'handle-neighbor-and-ghost' into handle_element-data
lenaploetzke 277dc06
provide option to set element data via element instead of only via th…
lenaploetzke b493c5f
typo
lenaploetzke 7d79e3f
doxygen
lenaploetzke efc900e
Merge branch 'handle-neighbor-and-ghost' into handle_element-data
lenaploetzke e8b023a
easier competence checks
lenaploetzke dc1fd8b
Merge branch 'handle-neighbor-and-ghost' into handle_element-data
lenaploetzke 0c611eb
Merge branch 'handle-neighbor-and-ghost' into handle_element-data
lenaploetzke bae1a04
Apply suggestions from code review
lenaploetzke 59a124e
review
lenaploetzke ee3c904
review
lenaploetzke c25be8d
doxygen
lenaploetzke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| /* | ||
| This file is part of t8code. | ||
| t8code is a C library to manage a collection (a forest) of multiple | ||
| connected adaptive space-trees of general element classes in parallel. | ||
|
|
||
| Copyright (C) 2025 the developers | ||
|
|
||
| t8code is free software; you can redistribute it and/or modify | ||
| it under the terms of the GNU General Public License as published by | ||
| the Free Software Foundation; either version 2 of the License, or | ||
| (at your option) any later version. | ||
|
|
||
| t8code is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| GNU General Public License for more details. | ||
|
|
||
| You should have received a copy of the GNU General Public License | ||
| along with t8code; if not, write to the Free Software Foundation, Inc., | ||
| 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
| */ | ||
|
|
||
| /** \file competence_pack.hxx | ||
| * Define to pack different competences into one template parameter for the \ref t8_mesh_handle::mesh class. | ||
| */ | ||
| #ifndef T8_COMPETENCE_PACK_HXX | ||
| #define T8_COMPETENCE_PACK_HXX | ||
|
|
||
| #include "competences.hxx" | ||
| namespace t8_mesh_handle | ||
| { | ||
| /** Class to pack different competences into one template parameter for the \ref mesh class. | ||
| * \tparam TCompetence The competences to be packed. | ||
| */ | ||
| template <template <typename> class... TCompetence> | ||
| struct competence_pack | ||
| { | ||
| /** Apply the competence pack to a template class, e.g. the \ref element class. | ||
| * \tparam Target The target template class to apply the \a TCompetence pack to. | ||
| */ | ||
| template <typename mesh_class, template <typename, template <typename> class...> class Target> | ||
| using apply = Target<mesh_class, TCompetence...>; | ||
|
|
||
| using is_competence_pack = void; /**< Tag to identify this class. */ | ||
| }; | ||
|
|
||
| /** Predefined competence pack combining all caching competences. */ | ||
| using cache_competences = competence_pack<cache_volume, cache_vertex_coordinates, cache_centroid, cache_neighbors>; | ||
|
|
||
| } // namespace t8_mesh_handle | ||
| #endif /* !T8_COMPETENCE_PACK_HXX */ |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.