X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=summarysharedcommand.cpp;h=e82d1f6600e0b83f79154634ddfbda43d7542d91;hb=1a968f34ae2d2680eaf189a197d1a21b8dfd6c03;hp=9893ea747a1a58799280b259c0950f47837b1af7;hpb=4b54ce99af7db8019ea907cd7c2edf789369ada9;p=mothur.git diff --git a/summarysharedcommand.cpp b/summarysharedcommand.cpp index 9893ea7..e82d1f6 100644 --- a/summarysharedcommand.cpp +++ b/summarysharedcommand.cpp @@ -742,6 +742,9 @@ int SummarySharedCommand::process(vector thisLookup, string //Close all thread handles and free memory allocations. for(int i=0; i < pDataArray.size(); i++){ + if (pDataArray[i]->count != (pDataArray[i]->end-pDataArray[i]->start)) { + m->mothurOut("[ERROR]: process " + toString(i) + " only processed " + toString(pDataArray[i]->count) + " of " + toString(pDataArray[i]->end-pDataArray[i]->start) + " groups assigned to it, quitting. \n"); m->control_pressed = true; + } m->appendFiles((sumFileName + toString(processIDS[i]) + ".temp"), sumFileName); m->mothurRemove((sumFileName + toString(processIDS[i]) + ".temp"));