Skip to content

Commit

Permalink
Merge pull request #57 from jaebeom-kim/master
Browse files Browse the repository at this point in the history
Change the message printed when matchBuffer overflowed
  • Loading branch information
jaebeom-kim committed Mar 13, 2024
2 parents 9dd746e + 1a7e929 commit 530b2df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/commons/Classifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ void Classifier::startClassify(const LocalParameters &par) {
numOfTatalQueryKmerCnt += queryKmerBuffer.startIndexOfReserve;
} else { // search was incomplete
// Increase matchPerKmer and try again
matchPerKmer *= 2;
matchPerKmer += 4;
// delete kseq1;
// delete kseq2;
cout << "The search was incomplete. Increasing --match-per-kmer to " << matchPerKmer << " and trying again." << endl;
cout << "--match-per-kmer was increased to " << matchPerKmer << " and searching again..." << endl;
// cout << "The search was incomplete. Increasing --match-per-kmer to " << matchPerKmer << " and trying again..." << endl;
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/commons/KmerMatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ querySplits, queryKmerList, matchBuffer, cout, targetDiffIdxFileName, numOfDiffI
} // End of omp parallel

if (hasOverflow) {
std::cout << "overflow!!!" << std::endl;
// std::cout << "overflow!!!" << std::endl;
return false;
}
} // end of while(completeSplitCnt < threadNum)
Expand Down

0 comments on commit 530b2df

Please sign in to comment.