ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/io/StatWriter.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-2.0/src/io/StatWriter.cpp (file contents):
Revision 1808 by tim, Tue Nov 30 23:14:29 2004 UTC vs.
Revision 1846 by tim, Sat Dec 4 00:01:32 2004 UTC

# 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines