Skip to content

Fix two bugs associated with the -mem option#173

Merged
bqminh merged 2 commits into
iqtree:masterfrom
StefanFlaumberg:fixkernel
Jun 18, 2026
Merged

Fix two bugs associated with the -mem option#173
bqminh merged 2 commits into
iqtree:masterfrom
StefanFlaumberg:fixkernel

Conversation

@StefanFlaumberg

Copy link
Copy Markdown
Contributor

This pull request introduces the following changes:

  • Fix bug 1 from [Bug] Two bugs associated with the -mem option iqtree2#431 by setting max_lh_slots independently of central_partial_lh to cover the cases where central_partial_lh is copied as in ModelMixture::optimizeWithEM(), which was causing the bug.
  • Fix bug 2 therefrom by capping min_lh_slots with max_lh_slots, as the former number can be overestimated for small trees with less than 5 leaves.
  • Also, in PhyloTree::getMemoryRequired(), correct the memory estimates for UFBoot and site-specific models, make type conversions more explicit, and add more comments.

@bqminh bqminh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

good

@bqminh bqminh merged commit 376e6cd into iqtree:master Jun 18, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants