]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
flush after each line so that data is written even if program is aborted
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Apr 2008 16:16:16 +0000 (16:16 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Apr 2008 16:16:16 +0000 (16:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@15981 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/log.cc

index 0a43de08dc76de547f96140cad60685e4c98ee39..64609a0d5a54c395f080cca10d6e1427592350bb 100644 (file)
@@ -90,7 +90,7 @@ LogStream::operator<< (std::ostream& (*p) (std::ostream&))
        *std_out << stream.str();
       
       if (file && (prefixes.size() <= file_depth))
-       *file << stream.str();
+       *file << stream.str() << std::flush;
       
                                       // Start a new string
       stream.str("");

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.