Skip to content

Hotfix/no bh kick stats - #14

Merged
nmdickson merged 2 commits into
masterfrom
hotfix/noBH-kick-stats
Dec 16, 2025
Merged

Hotfix/no bh kick stats#14
nmdickson merged 2 commits into
masterfrom
hotfix/noBH-kick-stats

Conversation

@nmdickson

Copy link
Copy Markdown
Member

Fixes a few things surrounding the stored _kick_stats, especially when the natal kicks are either not applied at all, or when the overall ejections of BHs removes all of them (e.g. BH_ret_dyn=0).

This is necessary to fix the bug found in GCfit at nmdickson/GCfit#222 (comment).

This commit fixes a few things to do with the stored `_kick_stats`
in EvolvedMF when the kicks were not being computed normally.
Most notably, before there was a bug when ejecting all BHs, because
the kick stats were being written manually in EvolvedMF. Now, there
is a new default "no kicks have been applied" constructor to the
`KickStats` class, and the kicks are being computed (and then ignored)
in the case when `BH_ret_dyn` is ejecting everything, so the stats
can be stored. While this is technically less efficient, the kicks
are quite fast and these stats are still interesting when ejecting
all the rest of the BHs dynamically anyway.
@nmdickson nmdickson self-assigned this Dec 16, 2025
@nmdickson nmdickson added the bug Something isn't working label Dec 16, 2025
@nmdickson
nmdickson merged commit f5d9bef into master Dec 16, 2025
1 check passed
@nmdickson
nmdickson deleted the hotfix/noBH-kick-stats branch December 16, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant