--- trunk/OOPSE/libmdtools/StatWriter.cpp 2004/05/20 20:24:07 1180 +++ trunk/OOPSE/libmdtools/StatWriter.cpp 2004/05/22 18:16:18 1187 @@ -32,22 +32,24 @@ StatWriter::StatWriter( SimInfo* the_entry_plug ){ painCave.isFatal = 1; simError(); } - - rawFile.open(rawName, ios::out | ios::trunc ); - - if( !rawFile ){ - - sprintf( painCave.errMsg, - "Could not open \"%s\" for stat output.\n", - rawName); - painCave.isFatal = 1; - simError(); - } //outFile.setf( ios::scientific ); outFile << "#time(fs)\ttot_E\tpotential\tkinetic\ttemperature\tpressure\tvolume\tconserved quantity\n"; - rawFile << "#time(fs)\tRaw Pot\t Raw Harm\n"; + if (entry_plug->useThermInt) { + rawFile.open(rawName, ios::out | ios::trunc ); + + if( !rawFile ){ + + sprintf( painCave.errMsg, + "Could not open \"%s\" for stat output.\n", + rawName); + painCave.isFatal = 1; + simError(); + } + + rawFile << "#time(fs)\tRaw Pot\t Raw Harm\n"; + } #ifdef IS_MPI }