ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/simBASS/simBASS.cpp
(Generate patch)

Comparing trunk/simBASS/simBASS.cpp (file contents):
Revision 21 by mmeineke, Tue Jul 9 18:55:29 2002 UTC vs.
Revision 187 by mmeineke, Tue Nov 26 21:02:28 2002 UTC

# Line 4 | Line 4
4   #include <cmath>
5   #include <cstring>
6  
7 + #include "simError.h"
8 + #include "SimSetup.hpp"
9 + #include "SimInfo.hpp"
10 + #include "Atom.hpp"
11 + #include "Integrator.hpp"
12 + #include "Thermo.hpp"
13 + #include "ReadWrite.hpp"
14  
8 #include "../../inc/SimSetup.hpp"
9 #include "../../inc/SimInfo.hpp"
10 #include "../../inc/Atom.hpp"
11 #include "../../inc/Integrator.hpp"
12 #include "../../inc/Thermo.hpp"
13 #include "../../inc/ReadWrite.hpp"
14
15   char* program_name;
16   using namespace std;
17  
# Line 36 | Line 36 | int main(int argc,char* argv[]){
36    int n_LRI;
37    int n_exclude;
38    
39 +  // first things first, all of the initializations
40  
41 <  srand48( 1337 ); // initialize the random number generator.
42 <
41 >  srand48( 1337 );          // the random number generator.
42 >  initSimError();           // the error handler
43    
44    program_name = argv[0]; /*save the program name in case we need it*/
45    if( argc < 2 ){
46 <    cerr<< "Error, bass file is needed to run.\n";
47 <    exit(8);
46 >    sprintf( painCave.errMsg,
47 >             "Error, bass file is needed to run.\n" );
48 >    painCave.isFatal = 1;
49 >    simError();
50    }
51    
52    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines