# | Line 21 | Line 21 | StatWriter::StatWriter( const std::string& filename, c | |
---|---|---|
21 | painCave.isFatal = 1; | |
22 | simError(); | |
23 | } | |
24 | + | |
25 | + | writeTitle(); |
26 | ||
27 | #ifdef IS_MPI | |
28 | } | |
# | Line 66 | Line 68 | void StatWriter::writeStat(Stats* s){ | |
68 | #endif // is_mpi | |
69 | } | |
70 | ||
71 | < | void StatWriter::writeStat(Stats* s){ |
71 | > | void StatWriter::writeStat(const Stats& s){ |
72 | ||
73 | #ifdef IS_MPI | |
74 | if(worldRank == 0 ){ | |
# | Line 76 | Line 78 | void StatWriter::writeStat(Stats* s){ | |
78 | ||
79 | for (int i =0; i < mask_.size(); ++i) { | |
80 | if (mask_[i]) { | |
81 | < | statfile_ << "\t" << (*s)[i]; |
81 | > | statfile_ << "\t" << s[i]; |
82 | } | |
83 | } | |
84 | statfile_ << std::endl; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |