Skip to content

Weight Windows using in DAGMC results in lost particles #3490

@shimwell

Description

@shimwell

Bug Description

When making weight windows with the nice new FW-CADIS and Random Ray method then using those weight windows in a model that has a source term inside a DAGMC universe I get lost particles.

After investigating with much help from @jtramm (many thanks for all the help) we tracked the bug down to this PR. When compiling on the current develop branch with the PR merged in I get lost particles, when commenting out the code and compiling again the model runs nicely.

While investigating I also noticed that we don't currently have a test which runs weight windows generated with FW-Cadis and Random Ray with DAGMC geometry. Most of the testing is in the regressions test folder. I would be tempted to take the minimal example linked below and add it to this test folder if that is an acceptable unit test?

Steps to Reproduce

Reproduce by running this minimal example with the dagmc in the same folder

Environment

ubuntu 25.04, openmc develop, python 3.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions