X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=distancecommand.cpp;h=ec32ffeb9e2e28b7398f78c5dd5fd858de2326a0;hp=da5d0f157390cb1a70c666ac86a9ecae1221f095;hb=89d6711c2beed6ee75fb00e5e57f1a91564d3e89;hpb=84f93a9e670eb7f7e69e0468b9be4c53890c07f2 diff --git a/distancecommand.cpp b/distancecommand.cpp index da5d0f1..ec32ffe 100644 --- a/distancecommand.cpp +++ b/distancecommand.cpp @@ -342,6 +342,14 @@ int DistanceCommand::execute(){ if (output == "square") { convertMatrix(outputFile); } + ifstream fileHandle; + fileHandle.open(outputFile.c_str()); + if(fileHandle) { + gobble(fileHandle); + if (fileHandle.eof()) { m->mothurOut(outputFile + " is blank. This can result if there are no distances below your cutoff."); m->mothurOutEndLine(); } + } + + #ifdef USE_MPI } #endif