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

Comparing trunk/OOPSE/libmdtools/StatWriter.cpp (file contents):
Revision 763 by tim, Mon Sep 15 16:52:02 2003 UTC vs.
Revision 799 by mmeineke, Fri Oct 3 22:11:53 2003 UTC

# Line 32 | Line 32 | StatWriter::StatWriter( SimInfo* the_entry_plug ){
32      }
33      
34      //outFile.setf( ios::scientific );
35 <    outFile << "#time(fs)\ttot_E\tpotential\tkinetic\ttemperature\tpressure\tvolume\tenthalpy\tconserved quantity\n";
35 >    outFile << "#time(fs)\ttot_E\tpotential\tkinetic\ttemperature\tpressure\tvolume\tconserved quantity\n";
36      
37  
38  
# Line 63 | Line 63 | void StatWriter::writeStat( double currentTime ){
63  
64   void StatWriter::writeStat( double currentTime ){
65  
66 <  double totE, potE, kinE, temp, press, vol, enthalpy;
66 >  double totE, potE, kinE, temp, press, vol;
67    double conservedQuantity;
68  
69    totE = tStats->getTotalE();
# Line 72 | Line 72 | void StatWriter::writeStat( double currentTime ){
72    temp = tStats->getTemperature();
73    press = tStats->getPressure();
74    vol = tStats->getVolume();
75  enthalpy = tStats->getEnthalpy();
75    conservedQuantity = entry_plug->the_integrator->getConservedQuantity();
76   #ifdef IS_MPI
77    if(worldRank == 0 ){
# Line 87 | Line 86 | void StatWriter::writeStat( double currentTime ){
86        << temp << "\t"
87        << press << "\t"
88        << vol << "\t"
90      << enthalpy << "\t"
89        << conservedQuantity << "\n";
90  
91      outFile.flush();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines