X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=chimeraslayercommand.cpp;h=35f3b988f86ec2e868d8eb5a825efc853e1662e7;hb=b45e6f3d505a212cebad5ca22e2611b1466bca48;hp=1de7021098d834dc165b42bcc3da82480c6868dd;hpb=284fd95c611ccc3b1a7875c4dacfca06d1f50ed6;p=mothur.git diff --git a/chimeraslayercommand.cpp b/chimeraslayercommand.cpp index 1de7021..35f3b98 100644 --- a/chimeraslayercommand.cpp +++ b/chimeraslayercommand.cpp @@ -538,7 +538,7 @@ int ChimeraSlayerCommand::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(); @@ -555,7 +555,7 @@ int ChimeraSlayerCommand::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());