Closed kloetzl closed 6 years ago
In any case,
N
should be checked to not exceedMAX_SEQ
.
This is actually very important, as it it surprisingly easy to produce a bad estimate:
>very-long-name
A
>p
A
>q
A
Agreed - lazy programming on my part. Will change to dynamic heap.
MAX_SEQ
is defined as1000000
which requires massive amounts of stack memory forcompute_distance_matrix
(15MB). Too much for my system, which only allows 8MB, thus triggering a segfault. I think 1000 should be a reasonable default value; or switch to a heap allocated dynamic array. In any case,N
should be checked to not exceedMAX_SEQ
.