ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/openmd/openmd.cpp
(Generate patch)

Comparing trunk/src/applications/openmd/openmd.cpp (file contents):
Revision 1413 by gezelter, Mon Mar 22 19:21:22 2010 UTC vs.
Revision 1461 by gezelter, Wed Jul 7 15:54:25 2010 UTC

# Line 59 | Line 59 | using namespace OpenMD;
59  
60   using namespace OpenMD;
61  
62
62   int main(int argc,char* argv[]){
63    
64    // first things first, all of the initializations
# Line 70 | Line 69 | int main(int argc,char* argv[]){
69    
70    initSimError();           // the error handler
71    srand48( 1337 );          // the random number generator.
72 <  
72 >
73 >  std::string revision;
74 >  //convert a macro from compiler to a string in c++
75 >  STR_DEFINE(revision, SVN_REV );
76 >  revision.resize(8,' ');
77 >
78   #ifdef IS_MPI
79    if( worldRank == 0 ){
80   #endif
# Line 83 | Line 87 | int main(int argc,char* argv[]){
87        "  | \\____/ .___/\\___/_/ /_//_/  /_//_____/    Copyright 2004-2010 by the  |\n"<<
88        "  |     /_/                                   University of Notre Dame.   |\n"<<
89        "  |                                                                       |\n"<<
90 <      "  |                   version " <<
91 <      OPENMD_VERSION_MAJOR << "." << OPENMD_VERSION_MINOR << "." << OPENMD_VERSION_TINY <<
92 <      "           http://www.openmd.net       |\n"<<
90 >      "  |        version " <<
91 >      OPENMD_VERSION_MAJOR << "." << OPENMD_VERSION_MINOR << "  Revision:" << revision <<
92 >      "     http://www.openmd.net       |\n"<<
93        "  |                                                                       |\n"<<
94        "  | OpenMD is an OpenScience project.  All source code is available for   |\n"<<
95        "  | any use whatsoever under a BSD-style license.                         |\n"<<

Comparing trunk/src/applications/openmd/openmd.cpp (property svn:keywords):
Revision 1413 by gezelter, Mon Mar 22 19:21:22 2010 UTC vs.
Revision 1461 by gezelter, Wed Jul 7 15:54:25 2010 UTC

# Line 0 | Line 1
1 + Revision

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines