Skip to content

Avoid overflow for volume fraction calculation#1895

Open
BradWhitlock wants to merge 8 commits into
feature/whitlock/sampling_low_order_blueprint_meshfrom
bugfix/whitlock/batched_volfrac_creation_mfem
Open

Avoid overflow for volume fraction calculation#1895
BradWhitlock wants to merge 8 commits into
feature/whitlock/sampling_low_order_blueprint_meshfrom
bugfix/whitlock/batched_volfrac_creation_mfem

Conversation

@BradWhitlock

@BradWhitlock BradWhitlock commented Jun 26, 2026

Copy link
Copy Markdown
Member

This PR resolves #1871 by:

  • Changing MFEM shaping helper shaping::computeVolumeFractionsForMaterial so it works on groups of elements rather than all elements at once when it looks like the number of values will overflow int32
  • Passes execution policy to shaping::computeVolumeFractionsForMaterial so we can parallelize for OpenMP some of the more expensive algorithm phases

Shaping driver varying mesh size for spheres.yaml input with order 4 output
image

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