]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix left-over from bug std:: merge.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 17 Jan 2001 09:28:24 +0000 (09:28 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 17 Jan 2001 09:28:24 +0000 (09:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@3711 0785d39b-7218-0410-832d-ea1e28bc413d

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

index aaf47d3ea19a46b807e02db2e11465cf01b2e661..4fc1d5ecce405d76fe8c021d8e38acfcb85aec46 100644 (file)
@@ -1334,25 +1334,27 @@ FullMatrix<number>::print_formatted (std::ostream       &out,
                                   // set output format, but store old
                                   // state
   std::ios::fmtflags old_flags = out.flags();
+
+  unsigned int actual_width = width;
   if (scientific)
     {
       out.setf (ios::scientific, ios::floatfield);
       if (!width)
-       width = precision+7;
+       actual_width = precision+7;
     } else {
       out.setf (ios::fixed, ios::floatfield);
       if (!width)
-       width = precision+2;
+       actual_width = precision+2;
     }
   
   for (unsigned int i=0; i<m(); ++i) 
     {
       for (unsigned int j=0; j<n(); ++j)
        if (el(i,j) != 0)
-         out << std::setw(width)
+         out << std::setw(actual_width)
              << el(i,j) * denominator << ' ';
        else
-         out << std::setw(width) << zero_string << ' ';
+         out << std::setw(actual_width) << zero_string << ' ';
       out << std::endl;
     };
 

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.