Skip to content

All tri for polygonal and polyhedra elements#4464

Open
GiudGiud wants to merge 7 commits into
libMesh:develfrom
GiudGiud:PR_all_tri_pol
Open

All tri for polygonal and polyhedra elements#4464
GiudGiud wants to merge 7 commits into
libMesh:develfrom
GiudGiud:PR_all_tri_pol

Conversation

@GiudGiud
Copy link
Copy Markdown
Contributor

@GiudGiud GiudGiud commented May 21, 2026

Have not reviewed it yet hence the draft
EDIT: ok I reviewed it locally and in the git API and it looks good for consideration

If there is such a label, should be marked as AI assisted

@moosebuild
Copy link
Copy Markdown

moosebuild commented May 21, 2026

Job Coverage, step Generate coverage on 370cb1b wanted to post the following:

Coverage

814502 #4464 370cb1
Total Total +/- New
Rate 65.53% 65.53% +0.01% 100.00%
Hits 78425 78453 +28 34
Misses 41256 41260 +4 0

Diff coverage report

Full coverage report

This comment will be updated on new commits.

@GiudGiud GiudGiud marked this pull request as ready for review May 22, 2026 14:42
GiudGiud and others added 7 commits May 22, 2026 08:45
Splits each C0Polygon into the TRI3s defined by its existing
triangulation.  The per-element subelement container is changed from a
fixed-size array to a vector since polygons can produce more than the
6 subelements assumed for 2D/3D primitives, and max_subelems is now
computed by also scanning polygons in 2D meshes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
refs idaholab/moose#32159
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
refs idaholab/moose#32159
Splits each C0Polyhedron into the TET4s defined by its existing
tetrahedralization.  The max_subelems scan is extended to also walk
polyhedra in 3D so the per-element subelement vector and global ID
offsets accommodate polyhedra that produce more than the 6 tets a HEX8
would.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
refs idaholab/moose#32159
Covers both tetrahedralization paths: a cube (no mid-element node) and
a hexagonal prism (mid-element node added to make the split work).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
refs idaholab/moose#32159
@roystgnr roystgnr added the AI Assisted PRs that in whole or in part include AI-generated code label May 22, 2026
Copy link
Copy Markdown
Member

@roystgnr roystgnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modules test failure unrelated

The AI commits are actually disturbingly good here - how hard was Claude to prompt on this one?

@GiudGiud
Copy link
Copy Markdown
Contributor Author

It wasn't very complicated either but yes I am fairly pleased at them too. I did tell it what to do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Assisted PRs that in whole or in part include AI-generated code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants