rambaut / Seq-Gen

Sequence simulator
51 stars 17 forks source link

Hacky fix to avoid heap corruption errors. #13

Closed Jazpy closed 5 years ago

Jazpy commented 6 years ago

Heap was being corrupted with large amounts of simulated output (1000+ chromosomes with lengths of 1MB+).

This should help avoid that. However, it'd be best if the number of tips for all trees was calculated ahead of time, and only one malloc() call was made per tree.