Skip to content

Commit

Permalink
Fix Wreorder warning in finalSubsParallel
Browse files Browse the repository at this point in the history
  • Loading branch information
benjjneb committed Apr 11, 2020
1 parent 2565b2f commit c1adc94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description: The dada2 package infers exact amplicon sequence variants (ASVs) fr
removing substitution and chimera errors. Taxonomic classification is available
via a native implementation of the RDP naive Bayesian classifier, and species-level
assignment to 16S rRNA gene fragments by exact matching.
Version: 1.15.4
Version: 1.15.5
Date: 2020-04-07
Maintainer: Benjamin Callahan <benjamin.j.callahan@gmail.com>
Author: Benjamin Callahan <benjamin.j.callahan@gmail.com>, Paul McMurdie, Susan Holmes
Expand Down
4 changes: 2 additions & 2 deletions src/Rmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Rcpp::List dada_uniques(std::vector< std::string > seqs, std::vector<int> abunda
int match, int mismatch, int gap, int homo_gap,
bool use_kmers, int band_size, bool vectorized_alignment, int SSE, bool gapless)
: b(b), subs(subs), birth_subs(birth_subs), match(match), mismatch(mismatch), gap(gap), homo_gap(homo_gap),
use_kmers(use_kmers), band_size(band_size), vectorized_alignment(vectorized_alignment), SSE(SSE), gapless(gapless) {}
band_size(band_size), use_kmers(use_kmers), vectorized_alignment(vectorized_alignment), SSE(SSE), gapless(gapless) {}

// Perform sequence comparison
void operator()(std::size_t begin, std::size_t end) {
Expand All @@ -215,7 +215,7 @@ Rcpp::List dada_uniques(std::vector< std::string > seqs, std::vector<int> abunda
};

if(multithread) {
FinalSubsParallel finalSubsParallel(bb, subs, birth_subs, match, mismatch, gap, homo_gap, use_kmers, band_size, vectorized_alignment, SSE, gapless);
FinalSubsParallel finalSubsParallel(bb, subs, birth_subs, match, mismatch, gap, homo_gap, band_size, use_kmers, vectorized_alignment, SSE, gapless);
RcppParallel::parallelFor(0, bb->nclust, finalSubsParallel, GRAIN_SIZE);
} else { // Non-Parallel implementation
for(i=0;i<bb->nclust;i++) {
Expand Down

0 comments on commit c1adc94

Please sign in to comment.