]> https://gitweb.dealii.org/ - dealii.git/commitdiff
DataOutBase: Do not modify precision of ostream
authorMatthias Maier <tamiko@43-1.org>
Thu, 10 Aug 2017 00:33:41 +0000 (19:33 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 10 Aug 2017 18:34:58 +0000 (13:34 -0500)
source/base/data_out_base.cc

index 1aed0260a6b28456d893d9de065761707da7d402..6d9428adddd7d2cf2dd50379cd7896e881bdb88c 100644 (file)
@@ -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());

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.