From 42107a1de3f25894dee8fb86d7b14c6d00be2fa3 Mon Sep 17 00:00:00 2001 From: prill Date: Wed, 31 Jan 2007 13:07:34 +0000 Subject: [PATCH] Fixed inversion of FullMatrix objects. git-svn-id: https://svn.dealii.org/trunk@14397 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/full_matrix.templates.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deal.II/lac/include/lac/full_matrix.templates.h b/deal.II/lac/include/lac/full_matrix.templates.h index d6bf96dfed..a46831d4d4 100644 --- a/deal.II/lac/include/lac/full_matrix.templates.h +++ b/deal.II/lac/include/lac/full_matrix.templates.h @@ -2000,7 +2000,7 @@ FullMatrix::invert (const FullMatrix &M) Assert (this->n_rows() == M.n_rows(), ExcDimensionMismatch(this->n_rows(), M.n_rows())); - if ((&M == this) && (this->n_cols() <= 4)) + if (&M == this) { // avoid overwriting source // by destination matrix: -- 2.39.5