Skip to content

Commit

Permalink
update log
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Feb 9, 2024
1 parent f8be6a4 commit b520950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/admixture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ int run_admix_main(Options & opts)
const double istep{4};
double alpha{std::numeric_limits<double>::lowest()}, qdiff, ldiff, stepMax{4}, alphaMax{1280};
double prevlike{std::numeric_limits<double>::lowest()}, logcheck{0}, loglike{0};
for(int it = 0; SIG_COND && (it < opts.nadmix / 4); it++)
for(int it = 0; SIG_COND && (it < opts.nadmix / 3); it++)
{
// first accel iteration
admixer.initIteration();
Expand All @@ -273,7 +273,7 @@ int run_admix_main(Options & opts)
admixer.updateIteration();
ldiff = it ? loglike - prevlike : NAN;
prevlike = loglike;
cao.print(tim.date(), "SqS3 iteration", it * 4 + 1, ", diff(Q) =", std::scientific, qdiff,
cao.print(tim.date(), "SqS3 iteration", it * 3 + 1, ", diff(Q) =", std::scientific, qdiff,
", alpha=", alpha, ", likelihoods =", std::fixed, loglike, ", diff(likelihoods)=", ldiff,
", elapsed", tim.reltime(), " sec");
if(ldiff < opts.ltol)
Expand Down

0 comments on commit b520950

Please sign in to comment.