-
Notifications
You must be signed in to change notification settings - Fork 295
Create Elem::is_internal
API for local node indices
#3897
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
Conversation
Job Coverage on 9d64dd4 wanted to post the following: Coverage
Warnings
This comment will be updated on new commits. |
src/geom/elem.C
Outdated
return false; | ||
|
||
case 1: | ||
return !is_vertex(i); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you use this->dim
, I'd also use this->is_vertex
, this->is_edge
, etc. for consistency. I generally prefer using this->
, since it makes it clear to anyone reading the code for the first time that you're calling a member function.
Job Test 32bit on 3153020 : invalidated by @lindsayad |
Job Test clang on 3153020 : invalidated by @lindsayad |
Job Test with threads on 3153020 : invalidated by @lindsayad |
@@ -127,7 +127,7 @@ class InfHex : public InfCell | |||
/** | |||
* We number faces last. | |||
*/ | |||
virtual bool is_face(const unsigned int i) const override final { return (i >= 12 && i < 16); } | |||
virtual bool is_face(const unsigned int i) const override final { return (i >= 12 && i < 17); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn, can't believe this has been sitting around for so long. Thank you!
@@ -128,7 +128,7 @@ bool Tri7::is_vertex(const unsigned int i) const | |||
|
|||
bool Tri7::is_edge(const unsigned int i) const | |||
{ | |||
if (i < 3) | |||
if (i < 3 || i == 6) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, now I'm just ashamed.
This is useful for determining condensed/uncondensed dofs for uses cases such as static condensation in #3883