--- trunk/src/applications/openmd/openmd.cpp 2010/03/22 19:21:22 1413 +++ trunk/src/applications/openmd/openmd.cpp 2010/07/07 15:54:25 1461 @@ -59,7 +59,6 @@ using namespace OpenMD; using namespace OpenMD; - int main(int argc,char* argv[]){ // first things first, all of the initializations @@ -70,7 +69,12 @@ int main(int argc,char* argv[]){ initSimError(); // the error handler srand48( 1337 ); // the random number generator. - + + std::string revision; + //convert a macro from compiler to a string in c++ + STR_DEFINE(revision, SVN_REV ); + revision.resize(8,' '); + #ifdef IS_MPI if( worldRank == 0 ){ #endif @@ -83,9 +87,9 @@ int main(int argc,char* argv[]){ " | \\____/ .___/\\___/_/ /_//_/ /_//_____/ Copyright 2004-2010 by the |\n"<< " | /_/ University of Notre Dame. |\n"<< " | |\n"<< - " | version " << - OPENMD_VERSION_MAJOR << "." << OPENMD_VERSION_MINOR << "." << OPENMD_VERSION_TINY << - " http://www.openmd.net |\n"<< + " | version " << + OPENMD_VERSION_MAJOR << "." << OPENMD_VERSION_MINOR << " Revision:" << revision << + " http://www.openmd.net |\n"<< " | |\n"<< " | OpenMD is an OpenScience project. All source code is available for |\n"<< " | any use whatsoever under a BSD-style license. |\n"<<