-
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
Improve single-event mode in accel
#1452
Conversation
The track ID for "primary" is inconsistent with the track counter and can cause duplicate track IDs.
accel
Test summary 3 300 files 5 097 suites 3m 30s ⏱️ Results for commit 4d16cbf. ♻️ This comment has been updated with latest results. |
step.reseed(UniqueEventId{123}); | ||
step(make_span(primaries)); | ||
EXPECT_EQ(TrackStatus::alive, sim.status()); | ||
EXPECT_EQ(TrackId{0}, sim.track_id()); |
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.
Should we extent the test to other ids than 0?
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.
I don't think it's necessary, since there's nothing special about track ID 0. We've got other tests to make sure that the code treats all track slots fairly, etc.
This follow-on to discussions in #1447 adds a non-synchronizing "fill" call to the track slot IDs (and also removes the synchronization in the RNG reseed). It also marks as "deprecated" the
max_num_events
setting in Celeritas. Finally, it also tests reproducibility using the full stepper.