X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=chimeraccodecommand.cpp;h=7a9431ef914b8f1741bbfcdd7fb25b52c554a910;hb=b45e6f3d505a212cebad5ca22e2611b1466bca48;hp=8ea91e53abe27cb75641bfc54c7ed293d2b17a65;hpb=284fd95c611ccc3b1a7875c4dacfca06d1f50ed6;p=mothur.git diff --git a/chimeraccodecommand.cpp b/chimeraccodecommand.cpp index 8ea91e5..7a9431e 100644 --- a/chimeraccodecommand.cpp +++ b/chimeraccodecommand.cpp @@ -522,7 +522,7 @@ int ChimeraCcodeCommand::createProcesses(string outputFileName, string filename, //pass numSeqs to parent ofstream out; - string tempFile = toString(getpid()) + ".temp"; + string tempFile = outputFileName + toString(getpid()) + ".num.temp"; openOutputFile(tempFile, out); out << num << endl; out.close(); @@ -539,7 +539,7 @@ int ChimeraCcodeCommand::createProcesses(string outputFileName, string filename, for (int i = 0; i < processIDS.size(); i++) { ifstream in; - string tempFile = toString(processIDS[i]) + ".temp"; + string tempFile = outputFileName + toString(processIDS[i]) + ".num.temp"; openInputFile(tempFile, in); if (!in.eof()) { int tempNum = 0; in >> tempNum; num += tempNum; } in.close(); remove(tempFile.c_str());