--- trunk/src/applications/openmd/openmd.cpp 2010/07/07 15:54:25 1461 +++ trunk/src/applications/openmd/openmd.cpp 2010/11/24 17:40:12 1526 @@ -70,11 +70,18 @@ int main(int argc,char* argv[]){ initSimError(); // the error handler srand48( 1337 ); // the random number generator. - std::string revision; + std::string svnrev; //convert a macro from compiler to a string in c++ - STR_DEFINE(revision, SVN_REV ); - revision.resize(8,' '); + STR_DEFINE(svnrev, SVN_REV ); + std::string revision; + + if (!svnrev.empty()) { + revision.assign(" Revision: " + svnrev); + } + + revision.resize(19,' '); + #ifdef IS_MPI if( worldRank == 0 ){ #endif @@ -88,7 +95,7 @@ int main(int argc,char* argv[]){ " | /_/ University of Notre Dame. |\n"<< " | |\n"<< " | version " << - OPENMD_VERSION_MAJOR << "." << OPENMD_VERSION_MINOR << " Revision:" << revision << + OPENMD_VERSION_MAJOR << "." << OPENMD_VERSION_MINOR << revision << " http://www.openmd.net |\n"<< " | |\n"<< " | OpenMD is an OpenScience project. All source code is available for |\n"<< @@ -150,7 +157,7 @@ int main(int argc,char* argv[]){ Integrator* myIntegrator = IntegratorFactory::getInstance()->createIntegrator(toUpperCopy(simParams->getEnsemble()), info); if (myIntegrator == NULL) { - sprintf(painCave.errMsg, "Integrator Factory can not create %s Integrator\n", + sprintf(painCave.errMsg, "Integrator Factory cannot create %s Integrator\n", simParams->getEnsemble().c_str()); painCave.isFatal = 1; simError();