X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=distancecommand.cpp;h=ec32ffeb9e2e28b7398f78c5dd5fd858de2326a0;hb=905cc2b0bd18c5ce611b048d785e93859865a5ea;hp=da5d0f157390cb1a70c666ac86a9ecae1221f095;hpb=cd9dbd8b53bbe32af3e9c6bead4aa6d796a278a5;p=mothur.git 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