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 1879 by gezelter, Sun Jun 16 15:15:42 2013 UTC vs.
Revision 1976 by gezelter, Wed Mar 12 20:01:15 2014 UTC

# Line 50 | Line 50
50   #include <locale>
51   #include "utils/simError.h"
52   #include "utils/CaseConversion.hpp"
53 + #include "utils/Revision.hpp"
54   #include "brains/Register.hpp"
55   #include "brains/SimCreator.hpp"
56   #include "brains/SimInfo.hpp"
# Line 72 | Line 73 | int main(int argc, char* argv[]){
73    // first things first, all of the initializations
74  
75   #ifdef IS_MPI
76 <  MPI::Init( argc, argv ); // the MPI communicators
76 >  MPI_Init( &argc, &argv ); // the MPI communicators
77   #endif
78    
79    initSimError();           // the error handler
80    //srand48( 1337 );          // the random number generator.
81  
82 <  std::string svnrev;
82 >  std::string svnrev(g_REVISION, strnlen(g_REVISION, 20));
83    //convert a macro from compiler to a string in c++
84 <  STR_DEFINE(svnrev, SVN_REV );
84 >  //STR_DEFINE(svnrev, SVN_REV );
85  
86    std::string revision;
87  
# Line 104 | Line 105 | int main(int argc, char* argv[]){
105        "  |                                                                          |\n"<<
106        "  |        version " <<
107        OPENMD_VERSION_MAJOR << "." << OPENMD_VERSION_MINOR << revision <<
108 <      "     http://www.openmd.net          |\n"<<
108 >      "     http://www.openmd.org          |\n"<<
109        "  |                                                                          |\n"<<
110        "  | OpenMD is an OpenScience project.  All source code is available for any  |\n"<<
111        "  | use whatsoever under a BSD-style license.                                |\n"<<
# Line 229 | Line 230 | int main(int argc, char* argv[]){
230    errorCheckPoint();
231  
232   #ifdef IS_MPI  
233 <  MPI::Finalize();
233 >  MPI_Finalize();
234   #endif
235  
236    return 0 ;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines