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

Fix zero-valued runtime attribute in depletion statepoints. #2302

Merged
merged 3 commits into from
Nov 23, 2022

Conversation

yardasol
Copy link
Contributor

This PR addressed the problem described in issue #2289.

Specifically, this PR:

  • Moves openmc.lib.reset_timers() from CoupledOperator.__call__() to CoupledOperator.write_bos_data()
  • Adds some lines to the depletion_with_transport regression test to check the runtime attributes.

Closes #2289.

@yardasol yardasol requested a review from paulromano November 18, 2022 16:56
@yardasol yardasol force-pushed the depletion-statepoints-fix branch from 6679b14 to d45c37b Compare November 18, 2022 21:49
@yardasol yardasol added the I/O File Input/Output label Nov 18, 2022
Copy link
Contributor

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @yardasol! One suggestion on the test:

tests/regression_tests/deplete_with_transport/test.py Outdated Show resolved Hide resolved
@yardasol yardasol force-pushed the depletion-statepoints-fix branch from a8e5cb2 to fea5ba8 Compare November 21, 2022 21:35
Copy link
Contributor

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

Thanks for the updates; LGTM!

@yardasol yardasol requested a review from paulromano November 21, 2022 21:41
@yardasol
Copy link
Contributor Author

@paulromano I added your suggested change. I didn't know defaultdict was a thing!

@yardasol yardasol force-pushed the depletion-statepoints-fix branch 2 times, most recently from c63d287 to 8163d7a Compare November 22, 2022 13:27
Co-authored-by: Paul Romano <[email protected]>
@yardasol yardasol requested a review from paulromano November 23, 2022 07:36
@paulromano paulromano merged commit 33ead74 into openmc-dev:develop Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Depletion I/O File Input/Output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StatePoint.runtime incorrectly written from depletion simulation.
2 participants