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 1461 by gezelter, Wed Jul 7 15:54:25 2010 UTC vs.
Revision 1526 by kstocke1, Wed Nov 24 17:40:12 2010 UTC

# Line 70 | Line 70 | int main(int argc,char* argv[]){
70    initSimError();           // the error handler
71    srand48( 1337 );          // the random number generator.
72  
73 <  std::string revision;
73 >  std::string svnrev;
74    //convert a macro from compiler to a string in c++
75 <  STR_DEFINE(revision, SVN_REV );
76 <  revision.resize(8,' ');
75 >  STR_DEFINE(svnrev, SVN_REV );
76  
77 +  std::string revision;
78 +
79 +  if (!svnrev.empty()) {
80 +     revision.assign("  Revision: " + svnrev);
81 +  }
82 +
83 +  revision.resize(19,' ');
84 +
85   #ifdef IS_MPI
86    if( worldRank == 0 ){
87   #endif
# Line 88 | Line 95 | int main(int argc,char* argv[]){
95        "  |     /_/                                   University of Notre Dame.   |\n"<<
96        "  |                                                                       |\n"<<
97        "  |        version " <<
98 <      OPENMD_VERSION_MAJOR << "." << OPENMD_VERSION_MINOR << "  Revision:" << revision <<
98 >      OPENMD_VERSION_MAJOR << "." << OPENMD_VERSION_MINOR << revision <<
99        "     http://www.openmd.net       |\n"<<
100        "  |                                                                       |\n"<<
101        "  | OpenMD is an OpenScience project.  All source code is available for   |\n"<<
# Line 150 | Line 157 | int main(int argc,char* argv[]){
157      Integrator* myIntegrator = IntegratorFactory::getInstance()->createIntegrator(toUpperCopy(simParams->getEnsemble()), info);
158  
159      if (myIntegrator == NULL) {
160 <      sprintf(painCave.errMsg, "Integrator Factory can not create %s Integrator\n",
160 >      sprintf(painCave.errMsg, "Integrator Factory cannot create %s Integrator\n",
161                simParams->getEnsemble().c_str());
162        painCave.isFatal = 1;
163        simError();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines