--- branches/mmeineke/simBASS/simBASS.cpp 2002/07/09 18:55:29 20 +++ trunk/simBASS/simBASS.cpp 2003/01/28 20:36:14 251 @@ -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,21 +36,25 @@ 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. - + printf("Initializing stuff ....\n"); + 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(); } in_name = argv[1]; - entry_plug = new SimInfo; + entry_plug = new SimInfo(); - startMe = new SimSetup; + startMe = new SimSetup(); startMe->setSimInfo( entry_plug ); startMe->parseFile( in_name ); startMe->createSim();