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

Update scheme-default_hex #714

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion src/t8_schemes/t8_default/t8_default_hex/t8_default_hex.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ T8_EXTERN_C_BEGIN ();
typedef p8est_quadrant_t t8_phex_t;

/** Provide an implementation for the hexahedral element class. */
t8_eclass_scheme_t *
t8_eclass_scheme_t*
t8_default_scheme_new_hex (void);

T8_EXTERN_C_END ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@ t8_default_scheme_hex_c::t8_element_maxlevel (void) const
return HEX_REFINE_MAXLEVEL;
}

/* *INDENT-OFF* */
t8_eclass_t
t8_default_scheme_hex_c::t8_element_child_eclass (int childid) const
{
T8_ASSERT (0 <= childid && childid < P8EST_CHILDREN);

return T8_ECLASS_HEX;
}
/* *INDENT-ON* */

int
t8_default_scheme_hex_c::t8_element_level (const t8_element_t *elem) const
Expand Down Expand Up @@ -360,7 +358,7 @@ t8_default_scheme_hex_c::t8_element_extrude_face (const t8_element_t *face, cons
return root_face;
}

/** Construct the first descendant of an element that touches a given face. */
/** Construct the first descendant of an element that touches a given face. */
void
t8_default_scheme_hex_c::t8_element_first_descendant_face (const t8_element_t *elem, int face, t8_element_t *first_desc,
int level) const
Expand Down Expand Up @@ -438,7 +436,6 @@ void
t8_default_scheme_hex_c::t8_element_boundary (const t8_element_t *elem, int min_dim, int length,
t8_element_t **boundary) const
{

SC_ABORT ("Not implemented\n");
}

Expand Down Expand Up @@ -636,11 +633,8 @@ t8_default_scheme_hex_c::t8_element_init (int length, t8_element_t *elem, int ne
}

#ifdef T8_ENABLE_DEBUG
/* *INDENT-OFF* */
/* indent bug, indent adds a second "const" modifier */
int
t8_default_scheme_hex_c::t8_element_is_valid (const t8_element_t *elem) const
/* *INDENT-ON* */
{
/* TODO: additional checks? do we set pad8 or similar?
*/
Expand Down