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 #1018: Number of brems events miscounted for DBS in BEAMnrc #1019

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

rtownson
Copy link
Collaborator

@rtownson rtownson commented Jun 20, 2023

Fix the output message in the egslst file for BEAMnrc simulations about the number of brems events the took place. When DBS was turned on, it would always read zero.

Just to be clear, there was nothing wrong with the splitting or the simulation. This is just a small bug in the counter variable that is only used to print to the egslst file.

@blakewalters please double check this change.

@rtownson rtownson requested a review from a team June 20, 2023 17:36
@rtownson rtownson requested review from ftessier, mainegra and blakewalters and removed request for a team June 20, 2023 17:36
@ftessier ftessier added this to the Release 2023a milestone Jul 6, 2023
Fix the output message in the egslst file for BEAMnrc simulations about
the number of brems events the took place. When DBS was turned on, it
would always read zero.
@ftessier ftessier requested a review from a team as a code owner August 2, 2023 21:26
@ftessier
Copy link
Member

ftessier commented Aug 8, 2023

@blakewalters please double-check this pull request for merging.

@ftessier
Copy link
Member

ftessier commented Aug 9, 2024

@blakewalters
Copy link
Contributor

blakewalters commented Aug 14, 2024

@rtownson: Please see my question above about possible miscounts when BCSE is used. Thanks!

@rtownson
Copy link
Collaborator Author

@rtownson: Please see my question above about possible miscounts when BCSE is used. Thanks!

I'm not seeing this question, could you give a link?

@blakewalters
Copy link
Contributor

@rtownson
Copy link
Collaborator Author

@rtownson: See the comment in https://github.com/nrc-cnrc/EGSnrc/pull/1019/files

@blakewalters strange, there's no comment there for me.. I guess just repeat it here!

@blakewalters
Copy link
Contributor

@rtownson, with reference to line 6426 of beamnrc.mortran: It looks like there could be a miscount in the case of bcse, where by this point in the logic nbr_split has been set back to nbrspl_orgnl (i.e. the input value of nbrspl). I think it would be okay to set NUM_BREM=count_nbrem, which is already keeping track of brem events for DBS, on this line, though. Whaddya think?

@ftessier
Copy link
Member

@blakewalters there is no comment, but you might see it if you have not clicked on "submit single comment" (or "start a review). If the comment does not show up in the conversation thread, then it has not been registered, so to speak.

@rtownson
Copy link
Collaborator Author

Thanks for catching that Blake, I've fixed it as per your suggestion so it will work for BCSE as well.

@ftessier
Copy link
Member

Great catch @blakewalters 🏅!

@rtownson rtownson merged commit 9428a24 into develop Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bremsstrahlung number of events egslst message miscounts for DBS in BEAMnrc
4 participants