X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=mothurout.cpp;h=fc16d204b142e5a6f55783f56bc52aafb8e6a4d1;hp=0efa551565c6e18001cd6ed53e0643a50f525f37;hb=c48d91112209b841444923670dca5454da0e2a4d;hpb=2cfb747aa8f63bde9c1114001e6d2e81ccd26178 diff --git a/mothurout.cpp b/mothurout.cpp index 0efa551..fc16d20 100644 --- a/mothurout.cpp +++ b/mothurout.cpp @@ -348,6 +348,27 @@ void MothurOut::mothurOut(string output) { } } /*********************************************************************************************/ +void MothurOut::mothurOutJustToScreen(string output) { + try { + +#ifdef USE_MPI + int pid; + MPI_Comm_rank(MPI_COMM_WORLD, &pid); + + if (pid == 0) { //only one process should output to screen +#endif + logger() << output; + +#ifdef USE_MPI + } +#endif + } + catch(exception& e) { + errorOut(e, "MothurOut", "MothurOut"); + exit(1); + } +} +/*********************************************************************************************/ void MothurOut::mothurOutEndLine() { try { #ifdef USE_MPI