FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

maRefine.cc: report post-refinement element quality (diagnostic only) by como2099 · Pull Request #525 · SCOREC/core · GitHub

/ core Public

maRefine.cc: report post-refinement element quality (diagnostic only) - #525

Open
como2099 wants to merge 1 commit into
SCOREC:masterfrom
como2099:cwm/2d-refinement-quality
Open

maRefine.cc: report post-refinement element quality (diagnostic only)#525
como2099 wants to merge 1 commit into
SCOREC:masterfrom
como2099:cwm/2d-refinement-quality

Conversation

como2099 commented Dec 20, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

This PR adds diagnostic-only reporting of element quality after mesh refinement when verbose output is enabled.

What this does

  • After refine(), uses existing markBadQuality() / unMarkBadQuality() infrastructure to count low-quality simplex elements (triangles or tets).
  • Reports the count and threshold (goodQuality) in verbose mode only.
  • No change to refinement behavior or adaptation decisions.

Why this is useful

When adapting mixed 2D tri/quad meshes, refinement can create degenerate triangles. This change makes that behavior visible using existing quality metrics, without modifying the adaptation algorithm.

Scope

  • One file (ma/maRefine.cc)
  • No new flags
  • No behavior changes
  • MPI-safe and reuses existing PUMI mechanisms

Example Output

MeshAdapt: iteration 0
MeshAdapt: after refine: 75 triangles with quality < goodQuality (0.200000)
MeshAdapt: iteration 1
MeshAdapt: after refine: 1065 triangles with quality < goodQuality (0.200000)

This is intended as the first step in a sequence of small PRs to improve refinement robustness for 2D mixed-element meshes.

Related context: discussion in issue #195

…sing existing markBadQuality/unMarkBadQuality infrastructure. This will help with debugging element quality checks under certain circumstances as seen in issue SCOREC#195. No behavior change unless in verbose mode.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL