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

Standalone scheme face functions #1345

Draft
wants to merge 46 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
2e3e459
add first face functions and reactivate the corresponding test
ole-alb Jan 17, 2025
21ec6e3
add further face functions and reactivate the correspoding test
ole-alb Jan 17, 2025
a2e5d52
make the coords a signed int
ole-alb Jan 20, 2025
c08e7f0
Merge remote-tracking branch 'origin/main' into standalone-scheme-faces
ole-alb Jan 27, 2025
bff1ee6
apply suggestions from review
ole-alb Jan 27, 2025
2113ea6
merge standalone-scheme
ole-alb Jan 27, 2025
d48d2d7
add new test for equal input and output
ole-alb Jan 27, 2025
a59572c
Merge remote-tracking branch 'origin/main' into standalone-scheme-faces
ole-alb Jan 27, 2025
90b2b00
fix test
ole-alb Jan 27, 2025
122e1d6
make coords a aigned int
ole-alb Jan 27, 2025
a08ea5d
revert loop to prevent overwriting of the input element
ole-alb Jan 27, 2025
2707dfe
Merge remote-tracking branch 'origin/main' into standalone-scheme-faces
ole-alb Jan 28, 2025
63e3d0d
add face functions to scheme
ole-alb Jan 28, 2025
55c2d29
reactivate face tests for all schemes
ole-alb Jan 28, 2025
c1f13a9
Merge remote-tracking branch 'origin/test-forest-AllSchemes' into sta…
ole-alb Jan 28, 2025
aabffdf
switch order of coords and level to be compatible with default scheme
ole-alb Jan 29, 2025
0427ae1
add more face functions
ole-alb Jan 29, 2025
f60e418
Merge remote-tracking branch 'origin/test-forest-AllSchemes' into sta…
ole-alb Jan 29, 2025
8132d67
Merge remote-tracking branch 'origin/coords_level_switch' into standa…
ole-alb Jan 29, 2025
f3d3f6a
test all schemes
ole-alb Jan 29, 2025
670b7da
apply suggestion from review
ole-alb Jan 29, 2025
3bccd2a
add new test
ole-alb Jan 30, 2025
abde1d6
imporve allocation
ole-alb Jan 30, 2025
bdb06c9
add the corner_face_function
ole-alb Jan 30, 2025
9e91920
add default case
ole-alb Jan 30, 2025
02baf75
Merge branch 'main' into standalone-scheme-faces
lukasdreyer Jan 30, 2025
f1e9cce
Merge remote-tracking branch 'origin/main' into standalone-scheme-faces
ole-alb Jan 30, 2025
ec88bdf
Merge remote-tracking branch 'origin/standalone-scheme-faces' into st…
ole-alb Jan 30, 2025
736d0f0
fix errors
ole-alb Jan 30, 2025
02803e4
fix error
ole-alb Jan 30, 2025
eb78c93
Merge remote-tracking branch 'origin/add_corner_face' into standalone…
ole-alb Jan 30, 2025
38be4df
fix unused varibles error
ole-alb Jan 30, 2025
bec8a0f
remove unused variables
ole-alb Jan 30, 2025
e622193
move test
ole-alb Jan 30, 2025
f0e8f82
clean up PR
ole-alb Jan 30, 2025
0ce0c84
clean up PR
ole-alb Jan 30, 2025
cf8d358
Merge remote-tracking branch 'origin/main' into standalone-scheme-faces
ole-alb Jan 31, 2025
6f4301a
reactivate all testing all schemes
ole-alb Jan 31, 2025
d0eb173
add documentation
ole-alb Jan 31, 2025
24b118c
Merge branch 'main' into standalone-scheme-faces
ole-alb Jan 31, 2025
7507604
Merge branch 'main' into standalone-scheme-faces
lukasdreyer Feb 4, 2025
ad354a9
fix bug
ole-alb Feb 4, 2025
cff0b32
Merge branch 'standalone-scheme-faces' of github.com:DLR-AMR/t8code i…
ole-alb Feb 4, 2025
f462432
cleanup
ole-alb Feb 4, 2025
c8ff37d
Merge remote-tracking branch 'origin/main' into standalone-scheme-faces
lukasdreyer Feb 5, 2025
63a7331
Adapt quad maxlevel to 30
lukasdreyer Feb 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/t8_schemes/t8_standalone/t8_standalone_elements.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#define t8_standalone_element t8_standalone

constexpr uint8_t T8_ELEMENT_DIM[T8_ECLASS_COUNT] = { 0, 1, 2, 2, 3, 3, 3, 3 };
constexpr uint8_t T8_ELEMENT_MAXLEVEL[T8_ECLASS_COUNT] = { 255, 30, 29, 29, 21, 21, 21, 18 };
constexpr uint8_t T8_ELEMENT_MAXLEVEL[T8_ECLASS_COUNT] = { 255, 30, 30, 29, 21, 21, 21, 18 };
constexpr uint8_t T8_ELEMENT_MAX_NUM_FACES[T8_ECLASS_COUNT] = { 1, 2, 4, 3, 6, 4, 5, 5 };
constexpr uint8_t T8_ELEMENT_NUM_CHILDREN[T8_ECLASS_COUNT] = { 1, 2, 4, 4, 8, 8, 8, 10 };
constexpr uint8_t T8_ELEMENT_NUM_CORNERS[T8_ECLASS_COUNT] = { 1, 2, 4, 3, 8, 4, 6, 5 };
Expand All @@ -39,7 +39,7 @@ constexpr uint8_t T8_ELEMENT_MAX_NUM_FACECHILDREN[T8_ECLASS_COUNT] = { 0, 1, 2,

constexpr uint8_t T8_ELEMENT_NUM_EQUATIONS[T8_ECLASS_COUNT] = { 0, 0, 0, 1, 0, 3, 1, 2 };

typedef uint32_t t8_element_coord;
typedef int32_t t8_element_coord;
typedef uint8_t t8_element_level;
typedef uint8_t t8_cube_id;
typedef uint8_t t8_child_id;
Expand All @@ -49,15 +49,13 @@ using t8_element_type = std::bitset<T8_ELEMENT_NUM_EQUATIONS[TEclass]>;

template <t8_eclass_t TEclass>
using t8_element_coords = std::array<t8_element_coord, T8_ELEMENT_DIM[TEclass]>;

template <t8_eclass_t TEclass>
struct t8_standalone_element
{
/** The refinement level of the element relative to the root at level 0. */
t8_element_level level;

/** The coordinates of the anchor vertex of the element. */
t8_element_coords<TEclass> coords;
/** The refinement level of the element relative to the root at level 0. */
t8_element_level level;
};

#endif /* T8_STANDALONE_ELEMENTS_HXX */
Loading