Skip to content

Commit

Permalink
Merge pull request #901 from schok6/fix-remove_n_in_dtri
Browse files Browse the repository at this point in the history
remove no longer needed entry for default_triangles
  • Loading branch information
Davknapp committed Jan 29, 2024
2 parents d21812e + aae5cb2 commit cfdade2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 2 additions & 0 deletions doc/author_schoenlein.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
I place my contributions to t8code under the FreeBSD license.
Katrin Schönlein (katrin.schoenlein@dlr.de)
1 change: 0 additions & 1 deletion src/t8_schemes/t8_default/t8_default_tri/t8_dtri.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ typedef struct t8_dtri
int8_t level;
t8_dtri_type_t type;
t8_dtri_coord_t x, y;
t8_dtri_coord_t n;
} t8_dtri_t;

T8_EXTERN_C_END ();
Expand Down
8 changes: 0 additions & 8 deletions src/t8_schemes/t8_default/t8_default_tri/t8_dtri_bits.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ t8_dtri_ancestor (const t8_dtri_t *t, int level, t8_dtri_t *ancestor)
ancestor->type = t->type;
}

ancestor->n = t->n;
#else
/* The sign of each diff reduces the number of possible types
* for the ancestor. At the end only one possible type is left,
Expand Down Expand Up @@ -1499,8 +1498,6 @@ t8_dtri_init_linear_id (t8_dtri_t *t, t8_linearidx_t id, int level)
t->y = 0;
#ifdef T8_DTRI_TO_DTET
t->z = 0;
#else
t->n = 0;
#endif
type = 0; /* This is the type of the root triangle */
for (i = 1; i <= level; i++) {
Expand Down Expand Up @@ -1529,8 +1526,6 @@ t8_dtri_init_root (t8_dtri_t *t)
t->y = 0;
#ifdef T8_DTRI_TO_DTET
t->z = 0;
#else
t->n = 0;
#endif
}

Expand Down Expand Up @@ -1698,9 +1693,6 @@ t8_dtri_is_valid (const t8_dtri_t *t)
/* for tets the eclass is set. */
is_valid = is_valid && t->eclass_int8 == T8_ECLASS_TET;
#endif
#else
/* n is 0 (we currently do not use n) */
is_valid = is_valid && t->n == 0;
#endif
/* Its type is in the valid range */
is_valid = is_valid && 0 <= t->type && t->type < T8_DTRI_NUM_TYPES;
Expand Down

0 comments on commit cfdade2

Please sign in to comment.