From: guido Date: Mon, 16 Aug 2004 06:10:00 +0000 (+0000) Subject: format change localized X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f03c21d5681ae1026715ad3227c92403372b019;p=dealii-svn.git format change localized git-svn-id: https://svn.dealii.org/trunk@9551 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/vector.templates.h b/deal.II/lac/include/lac/vector.templates.h index e6cc0c8180..d17ca6a52b 100644 --- a/deal.II/lac/include/lac/vector.templates.h +++ b/deal.II/lac/include/lac/vector.templates.h @@ -722,6 +722,9 @@ void Vector::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::print (std::ostream &out, out << std::endl; AssertThrow (out, ExcIO()); + // reset output format + out.flags (old_flags); + out.precision(old_precision); }