59 |
|
|
60 |
|
using namespace OpenMD; |
61 |
|
|
62 |
– |
|
62 |
|
int main(int argc,char* argv[]){ |
63 |
|
|
64 |
|
// first things first, all of the initializations |
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 |
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"<< |