]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Minor edits related to using '\n' instead of std::endl.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 12 Sep 2012 19:25:44 +0000 (19:25 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 12 Sep 2012 19:25:44 +0000 (19:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@26325 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/data_out_base.cc

index 87c06e2aa571c6b21633b237abccc610762b984d..5a56f06a97b2197e76f0f01d346b39408ff4baf3 100644 (file)
@@ -4866,6 +4866,8 @@ void DataOutBase::write_vtu_header (std::ostream &out)
   out << '\n';
 }
 
+
+
 void DataOutBase::write_vtu_footer (std::ostream &out)
 {
   AssertThrow (out, ExcIO());
@@ -4873,6 +4875,8 @@ void DataOutBase::write_vtu_footer (std::ostream &out)
   out << "</VTKFile>\n";
 }
 
+
+
 template <int dim, int spacedim>
 void
 DataOutBase::write_vtu (const std::vector<Patch<dim,spacedim> > &patches,
@@ -4884,6 +4888,8 @@ DataOutBase::write_vtu (const std::vector<Patch<dim,spacedim> > &patches,
   write_vtu_header(out);
   write_vtu_main (patches, data_names, vector_data_ranges, flags, out);
   write_vtu_footer(out);
+
+  out << std::flush;
 }
 
 
@@ -4961,10 +4967,10 @@ void DataOutBase::write_vtu_main (const std::vector<Patch<dim,spacedim> > &patch
                 << "\"></DataArray>\n";
           }
 
-      out << "</PointData>\n";
+      out << "  </PointData>\n";
+      out << "</Piece>\n";
 
-      out
-          << "</Piece>" << std::endl;
+      out << std::flush;
 
       return;
     }
@@ -5658,9 +5664,11 @@ void
 DataOutInterface<dim,spacedim>::write_visit_record (std::ostream &out,
                                                    const std::vector<std::string> &piece_names) const
 {
-  out << "!NBLOCKS " << piece_names.size() << std::endl;
+  out << "!NBLOCKS " << piece_names.size() << '\n';
   for (unsigned int i=0; i<piece_names.size(); ++i)
-    out << piece_names[i] << std::endl;
+    out << piece_names[i] << '\n';
+
+  out << std::flush;
 }
 
 

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.