Skip to content

Conversation

@SeverinDiederichs
Copy link
Collaborator

This small PR cleans the survive function in the monolithic kernels.

Variables were passed to survive but since it captures variables of the same name via [&] it was shadowing.
Before, it was functionally correct, but not clear. Now, just the captured variables are used.

@SeverinDiederichs SeverinDiederichs added the cleaning improves code clarity, readability or other label Dec 16, 2025
@phsft-bot
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@agheata agheata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup. We should consider having a method Track::Update(ekin, pos, dir, ...)

@JuanGonzalezCaminero JuanGonzalezCaminero merged commit c221fc5 into apt-sim:master Dec 18, 2025
3 checks passed
@SeverinDiederichs SeverinDiederichs deleted the clean_survive_call branch December 18, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleaning improves code clarity, readability or other

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants