[cig-commits] commit 1914 by buerg to /var/svn/dealii/aspect

dealii.demon at gmail.com dealii.demon at gmail.com
Mon Sep 23 11:35:22 PDT 2013


Revision 1914

Insert r1789 and change default parameter for grouping of files.

U   trunk/aspire/source/postprocess/visualization.cc


http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=1914&peg=1914

Diff:
Modified: trunk/aspire/source/postprocess/visualization.cc
===================================================================
--- trunk/aspire/source/postprocess/visualization.cc	2013-09-23 17:12:49 UTC (rev 1913)
+++ trunk/aspire/source/postprocess/visualization.cc	2013-09-23 18:35:10 UTC (rev 1914)
@@ -363,8 +363,14 @@
           const std::string *file_contents;
           {
             std::ostringstream tmp;
-            data_out.write (tmp, DataOutBase::parse_output_format(output_format));
-            file_contents = new std::string (tmp.str());
+            // if deal.II supports it (after 7.3.x), pass time step number and time as
+            // metadata into the output file
+            DataOutBase::VtkFlags vtk_flags;
+#if (DEAL_II_MAJOR*100 + DEAL_II_MINOR) >= 740
+            vtk_flags.cycle = this->get_timestep_number();
+            vtk_flags.time = this->get_time();
+#endif
+            data_out.set_flags (vtk_flags);
           }
 
           // let the master processor write the master record for all the distributed
@@ -543,7 +549,7 @@
                              Patterns::Selection (DataOutInterface<dim>::get_output_format_names ()),
                              "The file format to be used for graphical output.");
 
-          prm.declare_entry ("Number of grouped files", "0",
+          prm.declare_entry ("Number of grouped files", "1",
                              Patterns::Integer(0),
                              "VTU file output supports grouping files from several CPUs "
                              "into one file using MPI I/O when writing on a parallel "


More information about the CIG-COMMITS mailing list