From: Matthias Maier Date: Thu, 10 Aug 2017 00:33:41 +0000 (-0500) Subject: DataOutBase: Do not modify precision of ostream X-Git-Tag: v9.0.0-rc1~1305^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7e4224d378ef09162f4f16a0ad1a2004c7f9be3;p=dealii.git DataOutBase: Do not modify precision of ostream --- 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());