--- trunk/src/applications/openmd/openmd.cpp 2013/06/19 13:44:43 1891 +++ trunk/src/applications/openmd/openmd.cpp 2014/04/15 21:26:45 1985 @@ -50,6 +50,7 @@ #include #include "utils/simError.h" #include "utils/CaseConversion.hpp" +#include "utils/Revision.hpp" #include "brains/Register.hpp" #include "brains/SimCreator.hpp" #include "brains/SimInfo.hpp" @@ -72,15 +73,15 @@ int main(int argc, char* argv[]){ // first things first, all of the initializations #ifdef IS_MPI - MPI::Init( argc, argv ); // the MPI communicators + MPI_Init( &argc, &argv ); // the MPI communicators #endif initSimError(); // the error handler //srand48( 1337 ); // the random number generator. - std::string svnrev; + std::string svnrev(g_REVISION, strnlen(g_REVISION, 20)); //convert a macro from compiler to a string in c++ - STR_DEFINE(svnrev, SVN_REV ); + //STR_DEFINE(svnrev, SVN_REV ); std::string revision; @@ -99,7 +100,7 @@ int main(int argc, char* argv[]){ " | / __ \\____ ___ ____ / |/ // __ \\ The Open Molecular Dynamics |\n"<< " | / / / / __ \\/ _ \\/ __ \\ / /|_/ // / / / Engine (formerly OOPSE). |\n"<< " | / /_/ / /_/ / __/ / / // / / // /_/ / |\n"<< - " | \\____/ .___/\\___/_/ /_//_/ /_//_____/ Copyright 2004-2013 by the |\n"<< + " | \\____/ .___/\\___/_/ /_//_/ /_//_____/ Copyright 2004-2014 by the |\n"<< " | /_/ University of Notre Dame. |\n"<< " | |\n"<< " | version " << @@ -229,7 +230,7 @@ int main(int argc, char* argv[]){ errorCheckPoint(); #ifdef IS_MPI - MPI::Finalize(); + MPI_Finalize(); #endif return 0 ;