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 1078 by tim, Tue Mar 2 20:32:40 2004 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines