]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Small update with formatted output.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 14 Apr 1998 12:08:25 +0000 (12:08 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 14 Apr 1998 12:08:25 +0000 (12:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@167 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/data_io.cc

index bd5740031202dba4df693d78a7f6ca450a9008dc..a8af2255d1c7bc15bbc98aad93d332bc7f455ef2 100644 (file)
@@ -5,10 +5,11 @@
 #include <grid/dof_accessor.h>
 #include <grid/tria_iterator.h>
 #include <grid/tria.h>
-#include <map.h>
-#include <iostream.h>
-#include <algo.h>
-#include <time.h>
+#include <map>
+#include <iostream>
+#include <iomanip>
+#include <algorithm>
+#include <ctime>
 
 
 
@@ -267,10 +268,13 @@ void DataOut<dim>::write_ucd (ostream &out) const {
          << time->tm_mon+1 << "/"
          << time->tm_mday << endl
          << "# Time =  "
-         << time->tm_hour << ":" << time->tm_min << ":" << time->tm_sec << endl
+         << time->tm_hour << ":"
+         << setw(2) << time->tm_min << ":"
+         << setw(2) << time->tm_sec << endl
          << "#" << endl
          << "# For a description of the UCD format see the AVS Developer's guide."
-         << endl;
+         << endl
+         << "#" << endl;
     };
 
                                   // start with ucd data

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.