From 14143cec06564eb7b3bd9ec0e79f1cf06ee84567 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 12 Sep 2012 19:25:44 +0000 Subject: [PATCH] Minor edits related to using '\n' instead of std::endl. git-svn-id: https://svn.dealii.org/trunk@26325 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/base/data_out_base.cc | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/deal.II/source/base/data_out_base.cc b/deal.II/source/base/data_out_base.cc index 87c06e2aa5..5a56f06a97 100644 --- a/deal.II/source/base/data_out_base.cc +++ b/deal.II/source/base/data_out_base.cc @@ -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 << "\n"; } + + template void DataOutBase::write_vtu (const std::vector > &patches, @@ -4884,6 +4888,8 @@ DataOutBase::write_vtu (const std::vector > &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 << "\">\n"; } - out << "\n"; + out << " \n"; + out << "\n"; - out - << "" << std::endl; + out << std::flush; return; } @@ -5658,9 +5664,11 @@ void DataOutInterface::write_visit_record (std::ostream &out, const std::vector &piece_names) const { - out << "!NBLOCKS " << piece_names.size() << std::endl; + out << "!NBLOCKS " << piece_names.size() << '\n'; for (unsigned int i=0; i