Skip to content

Conversation

@como2099
Copy link
Contributor

@como2099 como2099 commented Dec 20, 2025

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.
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