Skip to content

Commit af06267

Browse files
committed
Fix
1 parent 89dac41 commit af06267

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/phylotesting.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6464,6 +6464,7 @@ CandidateModel findMixtureComponent(Params &params, IQTree &iqtree, ModelCheckpo
64646464
return std::any_of(freq_names.begin(), freq_names.end(),
64656465
[](const std::string& s) { return s == "+FO"; });
64666466
};
6467+
size_t new_model_strs_two_classes_len = (isGTRXIncluded() && isFOIncluded()) ? 4 : 2;
64676468
const char *new_model_strs_two_classes_GTRX_FO[] = {"MIX{MK+FQ,MK+FQ}", "MIX{MK+FO,MK+FO}", "MIX{GTRX+FQ,GTRX+FQ}", "MIX{GTRX+FO,GTRX+FO}"};
64686469
const char *new_model_strs_two_classes_GTRX[] = {"MIX{MK+FQ,MK+FQ}", "MIX{GTRX+FQ,GTRX+FQ}"};
64696470
const char *new_model_strs_two_classes_FO[] = {"MIX{MK+FQ,MK+FQ}", "MIX{MK+FO,MK+FO}"};
@@ -6474,7 +6475,7 @@ CandidateModel findMixtureComponent(Params &params, IQTree &iqtree, ModelCheckpo
64746475
? new_model_strs_two_classes_GTRX
64756476
: new_model_strs_two_classes_FO;
64766477

6477-
for (i=0; i<new_model_strs_two_classes.length(); i++) {
6478+
for (i=0; i<new_model_strs_two_classes_len; i++) {
64786479
string new_model_str = new_model_strs_two_classes[i];
64796480
candidate_models.push_back(CandidateModel(new_model_str, best_rate_name, iqtree.aln, 0));
64806481
}

0 commit comments

Comments
 (0)