X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=metastatscommand.cpp;h=9dff3543f49efa25037ce7fb3dd9eeeebbe8c787;hb=541bab1dac00688b4c3a8c4a95ab464412663c50;hp=8e61b37ee0e5639c76d3adf3f23ae0b4eefd234f;hpb=4b54ce99af7db8019ea907cd7c2edf789369ada9;p=mothur.git diff --git a/metastatscommand.cpp b/metastatscommand.cpp index 8e61b37..9dff354 100644 --- a/metastatscommand.cpp +++ b/metastatscommand.cpp @@ -431,6 +431,9 @@ int MetaStatsCommand::process(vector& thisLookUp){ //Close all thread handles and free memory allocations. for(int i=0; i < pDataArray.size(); i++){ + if (pDataArray[i]->count != (pDataArray[i]->num)) { + m->mothurOut("[ERROR]: process " + toString(i) + " only processed " + toString(pDataArray[i]->count) + " of " + toString(pDataArray[i]->num) + " groups assigned to it, quitting. \n"); m->control_pressed = true; + } for (int j = 0; j < pDataArray[i]->thisLookUp.size(); j++) { delete pDataArray[i]->thisLookUp[j]; } for (int j = 0; j < pDataArray[i]->outputNames.size(); j++) { outputNames.push_back(pDataArray[i]->outputNames[j]);