Permalink
Browse files

Print text size before crash.

Should allow for easier debugging.
  • Loading branch information...
gmiclotte committed May 11, 2017
1 parent 02fa47e commit 0708dd823b3fb54995a1c0bd1acb583d82127ea8
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/mummer/sparseSA.cpp
View
@@ -353,6 +353,8 @@ bool sparseSA::load(const string &prefix) {
}
void sparseSA::construct() {
cerr << "N=" << N << endl;
cerr << "N/K=" << N/K << endl;
if (K > 1) {
long bucketNr = 1;
int *intSA = new int[N/K+1];
@@ -407,11 +409,7 @@ void sparseSA::construct() {
int *SAint = (int*)(&SA[0]);
suffixsort(&ISA[0], SAint , N-1, alphalast, 1);
}
cerr << "N=" << N << endl;
LCP.resize(N/K);
cerr << "N/K=" << N/K << endl;
// Use algorithm by Kasai et al to construct LCP array.
computeLCP(); // SA + ISA -> LCP
LCP.init();

0 comments on commit 0708dd8

Please sign in to comment.