-
Notifications
You must be signed in to change notification settings - Fork 598
Add delay to activation of IFP tallies. #3728
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
base: develop
Are you sure you want to change the base?
Conversation
|
Hi @GuySten, thanks for the effort! I will probably need some time to get back to it more in depth, but I really like what you did in terms of simplification and cleaning. Do you see any impact in terms of runtime performance? |
|
The motivation for the simplifications is just cleaner code. |
|
This PR is now ready for review. |
|
Is there a specific reason as to why the IFP tests required a regold? Just asking as we'll need to regold our IFP tests in Cardinal the next time we do an OpenMC submodule update (after this is merged), and will need a reason for SQA purposes. |
|
Because this change decrease the statistics of the IFP tallies. Another reason is that in one test I increased the number of particles to compensate the decrease of statistics. |
Description
Currently, IFP tallies are scored in active batches but because they contain data from ifp_n_generations before they contain data from inactive batches (where the fission source distribution might not be converged).
Instead of making the user remember to increase the number of inactive batches when using IFP tallies this PR propose the elegant solution of activating the IFP tallies later (by ifp_n_generation).
This PR also further simplify the IFP implementation.
Checklist
I have followed the style guidelines for Python source files (if applicable)