]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make output of ConstraintMatrix::print compatible with the one prior to r18938 again...
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 26 Jun 2009 05:09:43 +0000 (05:09 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 26 Jun 2009 05:09:43 +0000 (05:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@18973 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/constraint_matrix.cc

index 7539c149f6e43f28acd83fe119bdb76992e68ef6..8f97d2a0cc7439d48a306df53a537333cc815732 100644 (file)
@@ -2032,9 +2032,14 @@ void ConstraintMatrix::print (std::ostream &out) const
                                         // the right hand side is not
                                         // a linear combination of
                                         // other dofs
-       out << "    " << lines[i].line
-           << " = " << lines[i].inhomogeneity
-           << "\n";
+       {
+         if (lines[i].inhomogeneity != 0)
+           out << "    " << lines[i].line
+               << " = " << lines[i].inhomogeneity
+               << "\n";
+         else
+           out << "    " << lines[i].line << " = 0\n";
+       }
     }
   
   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.