--- trunk/simBASS/simBASS.cpp 2002/07/09 18:55:29 21 +++ trunk/simBASS/simBASS.cpp 2002/11/26 21:02:28 187 @@ -4,14 +4,14 @@ #include #include +#include "simError.h" +#include "SimSetup.hpp" +#include "SimInfo.hpp" +#include "Atom.hpp" +#include "Integrator.hpp" +#include "Thermo.hpp" +#include "ReadWrite.hpp" -#include "../../inc/SimSetup.hpp" -#include "../../inc/SimInfo.hpp" -#include "../../inc/Atom.hpp" -#include "../../inc/Integrator.hpp" -#include "../../inc/Thermo.hpp" -#include "../../inc/ReadWrite.hpp" - char* program_name; using namespace std; @@ -36,14 +36,17 @@ int main(int argc,char* argv[]){ int n_LRI; int n_exclude; + // first things first, all of the initializations - srand48( 1337 ); // initialize the random number generator. - + srand48( 1337 ); // the random number generator. + initSimError(); // the error handler program_name = argv[0]; /*save the program name in case we need it*/ if( argc < 2 ){ - cerr<< "Error, bass file is needed to run.\n"; - exit(8); + sprintf( painCave.errMsg, + "Error, bass file is needed to run.\n" ); + painCave.isFatal = 1; + simError(); }