From b5f6cb7a5f7be59251f80624cd01245bb4ffde3d Mon Sep 17 00:00:00 2001 From: David Wells Date: Thu, 17 Dec 2015 15:51:27 -0500 Subject: [PATCH] Fix issues pointed out by @slazav. This commit fixes several compilation issues with ShiftedMatrixGeneralized. This bug has been present since cd072f5b77 (June 2001), so it looks like this class has never worked as advertised. --- include/deal.II/lac/shifted_matrix.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/deal.II/lac/shifted_matrix.h b/include/deal.II/lac/shifted_matrix.h index 2bb727396f..6cc0c69183 100644 --- a/include/deal.II/lac/shifted_matrix.h +++ b/include/deal.II/lac/shifted_matrix.h @@ -147,7 +147,7 @@ private: /** * Auxiliary vector. */ - VectorType aux; + mutable VectorType aux; /** * Shift parameter. @@ -249,7 +249,7 @@ ShiftedMatrixGeneralized::vmult if (sigma != 0.) { aux.reinit(dst); - M.vmult(aux, src); + M->vmult(aux, src); dst.add(sigma, aux); } } @@ -266,7 +266,7 @@ ShiftedMatrixGeneralized::residual if (sigma != 0.) { aux.reinit(dst); - M.vmult(aux, src); + M->vmult(aux, src); dst.add(sigma, aux); } dst.sadd(-1.,1.,rhs); -- 2.39.5