X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unifracweightedcommand.cpp;h=1fa1a2833c1fa7604a9e2cbb07bf255ace9dcd94;hb=e88ba6b7a994a8502030d38cc5cc542994694d4d;hp=4c387da9332c6ca280a9359105cf8dfa837cd0a9;hpb=0486bc2eed084ac387d2f59b6d23d13b2382daf7;p=mothur.git diff --git a/unifracweightedcommand.cpp b/unifracweightedcommand.cpp index 4c387da..1fa1a28 100644 --- a/unifracweightedcommand.cpp +++ b/unifracweightedcommand.cpp @@ -187,6 +187,8 @@ int UnifracWeightedCommand::execute() { //get weighted for users tree userData.resize(numComp,0); //data[0] = weightedscore AB, data[1] = weightedscore AC... randomData.resize(numComp,0); //data[0] = weightedscore AB, data[1] = weightedscore AC... + + if (numComp < processors) { processors = numComp; } //get weighted scores for users trees for (int i = 0; i < T.size(); i++) {