| 43 |
|
#include <mpi.h> |
| 44 |
|
#endif |
| 45 |
|
|
| 46 |
+ |
#include <fstream> |
| 47 |
|
#include "utils/simError.h" |
| 48 |
|
#include "utils/CaseConversion.hpp" |
| 49 |
|
#include "brains/Register.hpp" |
| 58 |
|
|
| 59 |
|
using namespace oopse; |
| 60 |
|
|
| 61 |
+ |
|
| 62 |
|
int main(int argc,char* argv[]){ |
| 63 |
< |
|
| 63 |
> |
|
| 64 |
|
// first things first, all of the initializations |
| 65 |
|
|
| 66 |
|
#ifdef IS_MPI |
| 78 |
|
" | ____ ____ ____ _____ ______ The OpenSource, Object-oriented |\n" << |
| 79 |
|
" | / __ \\/ __ \\/ __ \\/ ___// ____/ Parallel Simulation Engine. |\n" << |
| 80 |
|
" | / / / / / / / /_/ /\\__ \\/ __/ |\n" << |
| 81 |
< |
" | / /_/ / /_/ / ____/___/ / /___ Copyright 2004-2006 by the |\n" << |
| 81 |
> |
" | / /_/ / /_/ / ____/___/ / /___ Copyright 2004-2008 by the |\n" << |
| 82 |
|
" | \\____/\\____/_/ /____/_____/ University of Notre Dame. |\n" << |
| 83 |
|
" | |\n" << |
| 84 |
|
" | version " << |
| 104 |
|
} |
| 105 |
|
#endif |
| 106 |
|
|
| 105 |
– |
#ifdef IS_MPI |
| 107 |
|
strcpy( checkPointMsg, "Successful number of arguments" ); |
| 108 |
< |
MPIcheckPoint(); |
| 108 |
< |
#endif |
| 108 |
> |
errorCheckPoint(); |
| 109 |
|
|
| 110 |
– |
|
| 111 |
– |
|
| 110 |
|
//register forcefields, integrators and minimizers |
| 111 |
|
registerAll(); |
| 112 |
|
|
| 173 |
|
|
| 174 |
|
delete info; |
| 175 |
|
|
| 176 |
< |
#ifdef IS_MPI |
| 177 |
< |
strcpy( checkPointMsg, "Yoikes! It worked!" ); |
| 178 |
< |
MPIcheckPoint(); |
| 179 |
< |
|
| 176 |
> |
|
| 177 |
> |
strcpy( checkPointMsg, "Great googly moogly! It worked!" ); |
| 178 |
> |
errorCheckPoint(); |
| 179 |
> |
|
| 180 |
> |
#ifdef IS_MPI |
| 181 |
|
MPI_Finalize(); |
| 182 |
|
#endif |
| 183 |
|
|