Skip to content

Commit

Permalink
Merge pull request #208 from smithlabcode/debug-amrfinder
Browse files Browse the repository at this point in the history
Debug amrfinder
  • Loading branch information
andrewdavidsmith committed Apr 5, 2024
2 parents d4cb2ca + 3c91ca7 commit e5934e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/amrfinder/amrfinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,9 @@ process_chrom(const bool verbose, const uint32_t n_threads,

const auto n_blocks = n_threads*blocks_per_thread;

const size_t lim = n_cpgs - window_size + 1;
const size_t lim = (n_cpgs >= window_size) ?
n_cpgs - window_size + 1 : 0;
;
const auto blocks = get_block_bounds(static_cast<size_t>(0),
lim, lim/n_blocks);

Expand Down

0 comments on commit e5934e0

Please sign in to comment.