# | Line 15 | Line 15 | SimSetup::SimSetup(){ | |
---|---|---|
15 | SimSetup::SimSetup(){ | |
16 | stamps = new MakeStamps(); | |
17 | globals = new Globals(); | |
18 | + | |
19 | + | #ifdef IS_MPI |
20 | + | strcpy( checkPointMsg, "SimSetup creation successful" ); |
21 | + | MPIcheckPoint(); |
22 | + | #endif IS_MPI |
23 | } | |
24 | ||
25 | SimSetup::~SimSetup(){ | |
# | Line 24 | Line 29 | void SimSetup::parseFile( char* fileName ){ | |
29 | ||
30 | void SimSetup::parseFile( char* fileName ){ | |
31 | ||
27 | – | inFileName = fileName; |
28 | – | set_interface_stamps( stamps, globals ); |
32 | #ifdef IS_MPI | |
33 | < | mpiEventInit(); |
34 | < | #endif |
35 | < | yacc_BASS( fileName ); |
33 | > | if( worldRank == 0 ){ |
34 | > | #endif // is_mpi |
35 | > | |
36 | > | inFileName = fileName; |
37 | > | set_interface_stamps( stamps, globals ); |
38 | > | |
39 | #ifdef IS_MPI | |
40 | < | throwMPIEvent(NULL); |
40 | > | mpiEventInit(); |
41 | #endif | |
42 | ||
43 | + | yacc_BASS( fileName ); |
44 | + | |
45 | + | #ifdef IS_MPI |
46 | + | throwMPIEvent(NULL); |
47 | + | } |
48 | + | else recieveParse(); |
49 | + | #endif |
50 | + | |
51 | } | |
52 | ||
53 | #ifdef IS_MPI | |
# | Line 41 | Line 55 | void SimSetup::receiveParse(void){ | |
55 | ||
56 | set_interface_stamps( stamps, globals ); | |
57 | mpiEventInit(); | |
58 | + | MPIcheckPoint(); |
59 | mpiEventLoop(); | |
60 | ||
61 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |