Skip to content

fix: skip material-merge clash check for single-child stacks#5576

Merged
kodiakhq[bot] merged 3 commits into
acts-project:mainfrom
paulgessinger:fix/mat-merge-false-pos
Jun 12, 2026
Merged

fix: skip material-merge clash check for single-child stacks#5576
kodiakhq[bot] merged 3 commits into
acts-project:mainfrom
paulgessinger:fix/mat-merge-false-pos

Conversation

@paulgessinger

@paulgessinger paulgessinger commented Jun 12, 2026

Copy link
Copy Markdown
Member

The early material-clash pre-check in ContainerBlueprintNode::connectImpl iterated over ShellStack::mergedFaces() for every shell regardless of how many children were present. For an AxisZ stack that returns {OuterCylinder, InnerCylinder}, which are only actually merged when two or more children are stacked. With a single child no portal merge takes place, so flagging material on those faces was a false positive that caused a spurious warning (or, in strict mode, a throw).

Fix: guard the merged-face loop with shells.size() > 1 so the check is skipped entirely when there is nothing to merge.

--- END COMMIT MESSAGE ---

The early material-clash pre-check in ContainerBlueprintNode::connectImpl
iterated over ShellStack::mergedFaces() for every shell regardless of how
many children were present. For an AxisZ stack that returns
{OuterCylinder, InnerCylinder}, which are only actually merged when two or
more children are stacked. With a single child no portal merge takes place,
so flagging material on those faces was a false positive that caused a
spurious warning (or, in strict mode, a throw).

Fix: guard the merged-face loop with shells.size() > 1 so the check is
skipped entirely when there is nothing to merge.
@github-actions github-actions Bot added the Component - Core Affects the Core module label Jun 12, 2026
@github-actions github-actions Bot added this to the next milestone Jun 12, 2026
@paulgessinger paulgessinger requested a review from andiwand June 12, 2026 07:48
@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

📊: Physics performance monitoring for a71555c

Full contents

physmon summary

❗️: Downstream build failure

  • eic-shell EICrecon (cc @acts-project/epic-contacts)

❗️: Downstream build failure

  • Key4hep (cc @acts-project/key4hep-contacts)

@sonarqubecloud

Copy link
Copy Markdown

@kodiakhq kodiakhq Bot merged commit 71303ab into acts-project:main Jun 12, 2026
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component - Core Affects the Core module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants