From 40201f7aaa0fc8c107eefa572a270897d76c5426 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Fri, 26 Jun 2009 05:09:43 +0000 Subject: [PATCH] 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 --- deal.II/lac/source/constraint_matrix.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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()); -- 2.39.5