]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
time string added
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 30 Nov 2001 07:33:29 +0000 (07:33 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 30 Nov 2001 07:33:29 +0000 (07:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@5315 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/data_out_base.cc

index d54f54e027aeb23385c50fd04211be1350aee26d..bf9242b8b1f0badb108641423568db01c65e0e89 100644 (file)
@@ -508,28 +508,6 @@ void DataOutBase::write_dx (const typename std::vector<Patch<dim,spacedim> > &pa
              Assert (false, ExcNotImplemented());
       };
 
-                                  ///////////////////////
-                                  // preamble
-//TODO:[GK] Fill in preamble later
-  if (false)
-    {
-      std::time_t  time1= std::time (0);
-      std::tm     *time = std::localtime(&time1); 
-      out << "# This file was generated by the deal.II library." << std::endl
-         << "# Date =  "
-         << time->tm_year+1900 << "/"
-         << time->tm_mon+1 << "/"
-         << time->tm_mday << std::endl
-         << "# Time =  "
-         << time->tm_hour << ":"
-         << std::setw(2) << time->tm_min << ":"
-         << std::setw(2) << time->tm_sec << std::endl
-         << "#" << std::endl
-         << "# For a description of the UCD format see the AVS Developer's guide."
-         << std::endl
-         << "#" << std::endl;
-    };
-
                                   // start with vertices
   out << "object 1 class array type float rank 1 shape " << spacedim << " items " << n_nodes << " data follows"
       << std::endl;
@@ -809,6 +787,19 @@ void DataOutBase::write_dx (const typename std::vector<Patch<dim,spacedim> > &pa
       << "component \"connections\" value 2" << std::endl
       << "component \"data\" value 3" << std::endl;
 
+  if (true)
+    {
+      std::time_t  time1= std::time (0);
+      std::tm     *time = std::localtime(&time1); 
+      out << "attribute \"created\" string \""
+         << time->tm_year+1900 << "/"
+         << time->tm_mon+1 << "/"
+         << time->tm_mday
+         << time->tm_hour << ":"
+         << std::setw(2) << time->tm_min << ":"
+         << std::setw(2) << time->tm_sec << '"' << std::endl;
+    };
+
   out << "end" << std::endl;
                                   // assert the stream is still ok
   AssertThrow (out, ExcIO());

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.