X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sparcccommand.cpp;h=f319c014793560eb2809435a8da9ebf68df97543;hb=HEAD;hp=a7f5d78ad37c4c515821fd4686fb769d74ecd68f;hpb=58e640f9968ed426ac8cc0ebe3c01564ce68b4d7;p=mothur.git diff --git a/sparcccommand.cpp b/sparcccommand.cpp index a7f5d78..f319c01 100644 --- a/sparcccommand.cpp +++ b/sparcccommand.cpp @@ -317,7 +317,7 @@ int SparccCommand::process(vector& lookup){ cout.setf(ios::showpoint); vector > sharedVector; - vector otuNames = m->currentBinLabels; + vector otuNames = m->currentSharedBinLabels; //fill sharedVector to pass to CalcSparcc for (int i = 0; i < lookup.size(); i++) { @@ -427,7 +427,7 @@ vector > SparccCommand::createProcesses(vector >& sh //loop through and create all the processes you want while (process != processors) { - int pid = fork(); + pid_t pid = fork(); if (pid > 0) { processIDS.push_back(pid); //create map from line number to pid so you can append files in correct order later @@ -437,7 +437,7 @@ vector > SparccCommand::createProcesses(vector >& sh //pass pvalues to parent ofstream out; - string tempFile = toString(getpid()) + ".pvalues.temp"; + string tempFile = m->mothurGetpid(process) + ".pvalues.temp"; m->openOutputFile(tempFile, out); //pass values