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

Comparing trunk/mdtools/md_code/StatWriter.cpp (file contents):
Revision 184 by mmeineke, Thu Nov 21 20:33:06 2002 UTC vs.
Revision 260 by chuckv, Fri Jan 31 21:04:27 2003 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines