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 |
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"<< |
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(); |