X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=engine.cpp;h=b68bf61e4703fbd77133f8ba72c8488a78519d29;hb=813f0516e9c7533859f57ebe6d7b8854896bf009;hp=c6ceb59d051d6fb88fe1e169bdd9206da9d58ef8;hpb=2bbb7273d4bf5209f098c764551c6e072d60df36;p=mothur.git diff --git a/engine.cpp b/engine.cpp index c6ceb59..b68bf61 100644 --- a/engine.cpp +++ b/engine.cpp @@ -99,6 +99,15 @@ bool InteractEngine::getInput(){ /***********************************************************************/ string Engine::getCommand() { try { + #ifdef USE_MPI //mpirun doesn't work with readline + string nextCommand = ""; + + mout->mothurOut("mothur > "); + getline(cin, nextCommand); + mout->mothurOutJustToLog(toString(nextCommand)); + + return nextCommand; + #else #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) #ifdef USE_READLINE char* nextCommand = NULL; @@ -129,8 +138,7 @@ string Engine::getCommand() { return nextCommand; #endif - - mout->mothurOutEndLine(); + #endif } catch(exception& e) {