From: Martin Kronbichler Date: Fri, 26 Jun 2009 05:09:43 +0000 (+0000) Subject: Make output of ConstraintMatrix::print compatible with the one prior to r18938 again... X-Git-Tag: v8.0.0~7581 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40201f7aaa0fc8c107eefa572a270897d76c5426;p=dealii.git Make output of ConstraintMatrix::print compatible with the one prior to r18938 again in case the inhomogeneity is zero. git-svn-id: https://svn.dealii.org/trunk@18973 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/constraint_matrix.cc b/deal.II/lac/source/constraint_matrix.cc index 7539c149f6..8f97d2a0cc 100644 --- a/deal.II/lac/source/constraint_matrix.cc +++ b/deal.II/lac/source/constraint_matrix.cc @@ -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());