]> git.donarmstrong.com Git - mothur.git/blobdiff - makecontigscommand.cpp
added checks to make sure windows processes completed their tasks.
[mothur.git] / makecontigscommand.cpp
index 42406998133eba4ef7c9a6e6cc0d049e3cdcbe19..74133bbefc4abfb2f453893aa8ff2c39db4f0320 100644 (file)
@@ -824,6 +824,9 @@ int MakeContigsCommand::createProcesses(vector< vector<string> > files, string o
                //Close all thread handles and free memory allocations.
                for(int i=0; i < pDataArray.size(); i++){
                        num += pDataArray[i]->count;
+            if (!pDataArray[i]->done) {
+                m->mothurOut("[ERROR]: process " + toString(i) + " only processed " + toString(pDataArray[i]->count) + " of sequences assigned to it, quitting. \n"); m->control_pressed = true; 
+            }
             for (map<string, int>::iterator it = pDataArray[i]->groupCounts.begin(); it != pDataArray[i]->groupCounts.end(); it++) {
                 map<string, int>::iterator it2 = groupCounts.find(it->first);
                 if (it2 == groupCounts.end()) {        groupCounts[it->first] = it->second; }