--- trunk/src/applications/openmd/openmd.cpp 2013/06/19 13:44:43 1891 +++ trunk/src/applications/openmd/openmd.cpp 2014/03/12 20:01:15 1976 @@ -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; @@ -229,7 +230,7 @@ int main(int argc, char* argv[]){ errorCheckPoint(); #ifdef IS_MPI - MPI::Finalize(); + MPI_Finalize(); #endif return 0 ;