# | Line 9 | Line 9 | StatWriter::StatWriter( SimInfo* the_entry_plug ){ | |
---|---|---|
9 | StatWriter::StatWriter( SimInfo* the_entry_plug ){ | |
10 | ||
11 | #ifdef IS_MPI | |
12 | < | if(worldRank == TESTWRITE ){ |
12 | > | if(worldRank == 0 ){ |
13 | #endif // is_mpi | |
14 | ||
15 | entry_plug = the_entry_plug; | |
# | Line 36 | Line 36 | StatWriter::StatWriter( SimInfo* the_entry_plug ){ | |
36 | ||
37 | #ifdef IS_MPI | |
38 | } | |
39 | + | |
40 | + | sprintf( checkPointMsg, |
41 | + | "Sucessfully opened output file for stating.\n"); |
42 | + | MPIcheckPoint(); |
43 | #endif // is_mpi | |
44 | } | |
45 | ||
46 | StatWriter::~StatWriter( ){ | |
47 | ||
48 | #ifdef IS_MPI | |
49 | < | if(worldRank == TESTWRITE ){ |
49 | > | if(worldRank == 0 ){ |
50 | #endif // is_mpi | |
51 | ||
52 | outFile.close(); | |
# | Line 56 | Line 60 | void StatWriter::writeStat( double currentTime ){ | |
60 | void StatWriter::writeStat( double currentTime ){ | |
61 | ||
62 | #ifdef IS_MPI | |
63 | < | if(worldRank == TESTWRITE ){ |
63 | > | if(worldRank == 0 ){ |
64 | #endif // is_mpi | |
65 | ||
66 | outFile.precision(8); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |