Add delay to activation of IFP tallies.#3728
Add delay to activation of IFP tallies.#3728GuySten wants to merge 12 commits intoopenmc-dev:developfrom
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)