From c7e4224d378ef09162f4f16a0ad1a2004c7f9be3 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 9 Aug 2017 19:33:41 -0500 Subject: [PATCH] DataOutBase: Do not modify precision of ostream --- source/base/data_out_base.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 1aed0260a6..6d9428addd 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -3590,8 +3590,6 @@ namespace DataOutBase return; #endif - const unsigned int old_precision = out.precision(); - // set up an array of cells to be // written later. this array holds the // cells of all the patches as @@ -3850,12 +3848,6 @@ namespace DataOutBase << '\n'; // set fine lines out << flags.line_width << " setlinewidth" << '\n'; - // allow only five digits - // for output (instead of the - // default six); this should suffice - // even for fine grids, but reduces - // the file size significantly - out << std::setprecision (5); } // check if min and max @@ -3920,9 +3912,7 @@ namespace DataOutBase << '\n'; } out << "showpage" << '\n'; - // make sure everything now gets to - // disk - out << std::setprecision(old_precision); + out.flush (); AssertThrow (out, ExcIO()); -- 2.39.5