Skip to content

Override NodeElem::volume() to return 1#4413

Merged
jwpeterson merged 1 commit intolibMesh:develfrom
jwpeterson:node_elem_volume
Mar 3, 2026
Merged

Override NodeElem::volume() to return 1#4413
jwpeterson merged 1 commit intolibMesh:develfrom
jwpeterson:node_elem_volume

Conversation

@jwpeterson
Copy link
Copy Markdown
Member

This does not change the existing behavior, since the base class Elem::volume() implementation already returned 1 for NodeElems, but it does document the behavior while also avoiding any overhead that might have come from calling Elem::volume().

This does not change the existing behavior, since the base class
Elem::volume() implementation already returned 1 for NodeElems, but it
does document the behavior while also avoiding any overhead that might
have come from calling Elem::volume().
@jwpeterson
Copy link
Copy Markdown
Member Author

The doc string here is taken from a slack chat with @roystgnr, hopefully he won't have any objections to it :)

@moosebuild
Copy link
Copy Markdown

Job Coverage, step Generate coverage on 8300f2e wanted to post the following:

Coverage

1e3b67 #4413 8300f2
Total Total +/- New
Rate 65.34% 65.34% +0.00% 100.00%
Hits 77858 77860 +2 1
Misses 41297 41296 -1 0

Diff coverage report

Full coverage report

This comment will be updated on new commits.

@jwpeterson jwpeterson merged commit c889858 into libMesh:devel Mar 3, 2026
26 checks passed
@jwpeterson jwpeterson deleted the node_elem_volume branch March 3, 2026 20:33
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.

3 participants