Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove wgt_absorb data member from Particle #1974

Merged
merged 7 commits into from
Feb 18, 2022

Conversation

paulromano
Copy link
Contributor

Right now, survival biasing relies on a data member in Particle called wgt_absorb (weight absorbed). It turns out this is not necessary and can be calculated on-the-fly for tallies if needed. This PR removes the wgt_absorb member and simplifies some logic related to survival biasing. The russian_roulette function has been generalized and is now used for weight windows as well.

One unrelated small fix is in here too -- I found a bug in Halfspace.rotate when a rotation matrix is passed that is now fixed.

Copy link
Contributor

@gridley gridley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some tiny comments.

include/openmc/physics_common.h Show resolved Hide resolved
src/physics.cpp Outdated Show resolved Hide resolved
src/physics_common.cpp Show resolved Hide resolved
src/physics_common.cpp Show resolved Hide resolved
src/tallies/tally_scoring.cpp Show resolved Hide resolved
src/tallies/tally_scoring.cpp Show resolved Hide resolved
src/tallies/tally_scoring.cpp Show resolved Hide resolved
@paulromano paulromano removed the request for review from pshriwise February 16, 2022 15:38
@paulromano
Copy link
Contributor Author

@gridley Let me know if you have further requests for changes

@gridley
Copy link
Contributor

gridley commented Feb 17, 2022

LGTM!

Copy link
Contributor

@gridley gridley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing comments to a full review.

@gridley gridley merged commit 831c8d1 into openmc-dev:develop Feb 18, 2022
@paulromano paulromano deleted the survival-biasing-fix branch February 18, 2022 15:54
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.

2 participants