Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 7 commits into from
Jul 10, 2024

Conversation

lindsayad
Copy link
Member

@lindsayad lindsayad commented Jul 1, 2024

This is useful for determining condensed/uncondensed dofs for uses cases such as static condensation in #3883

  • Add unit tests

@moosebuild
Copy link

moosebuild commented Jul 1, 2024

Job Coverage on 9d64dd4 wanted to post the following:

Coverage

25d486 #3897 9d64dd
Total Total +/- New
Rate 62.73% 62.79% +0.06% 75.00%
Hits 69401 69475 +74 12
Misses 41230 41168 -62 4

Diff coverage report

Full coverage report

Warnings

  • New new line coverage rate 75.00% is less than the suggested 90.0%

This comment will be updated on new commits.

src/geom/elem.C Outdated
return false;

case 1:
return !is_vertex(i);
Copy link
Member

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.

@moosebuild
Copy link

Job Test 32bit on 3153020 : invalidated by @lindsayad

@moosebuild
Copy link

Job Test clang on 3153020 : invalidated by @lindsayad

@moosebuild
Copy link

Job Test with threads on 3153020 : invalidated by @lindsayad

@lindsayad lindsayad marked this pull request as ready for review July 2, 2024 20:18
@@ -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); }
Copy link
Member

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)
Copy link
Member

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.

@lindsayad lindsayad merged commit 67b9856 into libMesh:devel Jul 10, 2024
20 checks passed
@lindsayad lindsayad deleted the is-internal branch July 10, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants