#include "globaldata.hpp"
#include "mothurout.h"
+
/**************************************************************************************************/
GlobalData* GlobalData::_uniqueInstance = 0;
m->mothurOutEndLine();
m->mothurOut("Type 'quit()' to exit program");
m->mothurOutEndLine();
-
+
+ #ifdef USE_MPI
+ m->mothurOutJustToLog("Using MPI\n");
+ MPI_Init(&argc, &argv);
+ #endif
//srand(54321);
srand( (unsigned)time( NULL ) );
mothur = new InteractEngine(argv[0]);
}
- while(bail == 0) { bail = mothur->getInput(); }
+ while(bail == 0) { bail = mothur->getInput(); }
string outputDir = mothur->getOutputDir();
string newlogFileName = outputDir + logFileName;
rename(logFileName.c_str(), newlogFileName.c_str()); //logfile with timestamp
delete mothur;
-
+
+ #ifdef USE_MPI
+ MPI_Finalize();
+ #endif
+
return 0;
}
catch(exception& e) {