-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add high-level user/fast sim integration helpers #1615
Add high-level user/fast sim integration helpers #1615
Conversation
Test summary 4 592 files 7 030 suites 13m 24s ⏱️ Results for commit 448084f. ♻️ This comment has been updated with latest results. |
@sethrj A quick test with
even though it seems that |
Thanks @whokion , I'll see if I can reproduce that odd failure 🤔 Regarding the version, perhaps you need to run |
Okay, the version problem is resolved by |
Great catch @whokion , I had accidentally disabled execution of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like fastsim might be trying to flush without Celeritas enabled? Looks great on my end, thanks @sethrj!
Thanks for quick updating, which fixes the crash! |
@sethrj One more minor comment on |
One more minor comment (sorry that I have not followed this MR from the beginning, so do not see all updated changes in "Files Changed"): In the main of three examples under example/acc, the default particle of PrimaryGeneratorAction is set to 100 MeV neutron, which will not produce any meaningful EM or hadronic secondaries as 100 MeV is below the pion production threshold, and the neutron mainly undergoes elastic scatterings and only produces very soft gammas during the deexcitation process even if there is (rare) an inelastic inter-nuclear interaction or a neutron capture process. So, it would be better to set to something that can generate secondary hadrons and then produce EM particles from either inelastic or the |
@whokion Good point. I dialed down the energy to reduce the compute time since it's just a silly example, but maybe I'll just make the world smaller to let some of the energy escape. |
This completes the first bullet on #1600 . It deprecates
SimpleOffload
and adds new integration classes for UserAction and FastSimulation . I'm using inheritance for implementation rather than interface, but it substantially cuts down the boilerplate at the expense of making the class harder to read (you need to open two classes to get the full interface).