]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
format change localized
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 16 Aug 2004 06:10:00 +0000 (06:10 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 16 Aug 2004 06:10:00 +0000 (06:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@9551 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/vector.templates.h

index e6cc0c818041a6df2f73a4a7f9ee91ee06695ea9..d17ca6a52b5a73116b98b778c84f1f7113679386 100644 (file)
@@ -722,6 +722,9 @@ void Vector<Number>::print (std::ostream      &out,
   Assert (dim!=0, ExcEmptyVector());
   AssertThrow (out, ExcIO());
 
+  std::ios::fmtflags old_flags = out.flags();
+  unsigned int old_precision = out.precision (precision);
+  
   out.precision (precision);
   if (scientific)
     out.setf (std::ios::scientific, std::ios::floatfield);
@@ -737,6 +740,9 @@ void Vector<Number>::print (std::ostream      &out,
   out << std::endl;
   
   AssertThrow (out, ExcIO());
+                                   // reset output format
+  out.flags (old_flags);
+  out.precision(old_precision);
 }
 
 

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.