Added some documentation to the numerical integration classes and applied small cosmetic changes to msr2data.

This commit is contained in:
Bastian M. Wojek
2011-02-06 12:44:45 +00:00
parent 4a3ccab3e9
commit 5c6331f51f
4 changed files with 381 additions and 68 deletions

View File

@ -1959,7 +1959,7 @@ int PMsr2Data::WriteOutput(const string &outfile, bool db, unsigned int withHead
outFile.seekg(-i, ios::end);
getline(outFile, s);
trim(s); // remove whitespace
if (s.empty() || (s == "\n")) { // (s == "\n") check is for M$-systems using "\r\n" linebreaks
if (s.empty()) { // trim cuts off also characters like '\n', therefore this should work also with M$-DOS linebreaks
if (i == size) {
outFile.seekp(0);
fHeaderWritten = false; // if the file contained only empty lines, default to writing the header