X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clustercommand.cpp;h=678912c2076a10af0580f9b778238e3134542c44;hb=ae57e166b2ed7b475ec3f466106bd76fabadd063;hp=fd1f841dacab7ea017f15400766f384f10789cf3;hpb=220dc345e493cddc569521111ce32ac4d965ab7f;p=mothur.git diff --git a/clustercommand.cpp b/clustercommand.cpp index fd1f841..678912c 100644 --- a/clustercommand.cpp +++ b/clustercommand.cpp @@ -244,7 +244,7 @@ int ClusterCommand::execute(){ if (m->control_pressed) { //clean up delete list; delete matrix; delete rabund; sabundFile.close();rabundFile.close();listFile.close(); - for (int i = 0; i < outputNames.size(); i++) { remove(outputNames[i].c_str()); } outputTypes.clear(); + for (int i = 0; i < outputNames.size(); i++) { m->mothurRemove(outputNames[i]); } outputTypes.clear(); return 0; } @@ -283,7 +283,7 @@ int ClusterCommand::execute(){ if (m->control_pressed) { //clean up delete list; delete matrix; delete rabund; delete cluster; sabundFile.close();rabundFile.close();listFile.close(); - for (int i = 0; i < outputNames.size(); i++) { remove(outputNames[i].c_str()); } outputTypes.clear(); + for (int i = 0; i < outputNames.size(); i++) { m->mothurRemove(outputNames[i]); } outputTypes.clear(); return 0; } @@ -326,7 +326,7 @@ int ClusterCommand::execute(){ cout.flush(); print_start = false; } - + if(previousDist <= 0.0000){ printData("unique"); }