From 4931422b1c7ec75e45464d4f1e1a17c3274bfc63 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 16 Mar 1998 13:49:59 +0000 Subject: [PATCH] Make two functions in dSMatrix const git-svn-id: https://svn.dealii.org/trunk@70 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/dsmatrix.h | 4 ++-- deal.II/lac/source/dsmatrix.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deal.II/lac/include/lac/dsmatrix.h b/deal.II/lac/include/lac/dsmatrix.h index 763ceac0aa..303c41cd5c 100644 --- a/deal.II/lac/include/lac/dsmatrix.h +++ b/deal.II/lac/include/lac/dsmatrix.h @@ -155,9 +155,9 @@ class dSMatrix void add(int i,int j,double value) { val[cols->operator()(i,j)]+= value; } // - void vmult (dVector& dst,const dVector& src); + void vmult (dVector& dst,const dVector& src) const; // - void Tvmult(dVector& dst,const dVector& src); + void Tvmult(dVector& dst,const dVector& src) const; // double residual (dVector& dst,const dVector& x,const dVector& b); diff --git a/deal.II/lac/source/dsmatrix.cc b/deal.II/lac/source/dsmatrix.cc index 1124ea772e..7a69579c18 100644 --- a/deal.II/lac/source/dsmatrix.cc +++ b/deal.II/lac/source/dsmatrix.cc @@ -325,7 +325,7 @@ dSMatrix::reinit (dSMatrixStruct &sparsity) { void -dSMatrix::vmult(dVector& dst,const dVector& src) +dSMatrix::vmult(dVector& dst,const dVector& src) const { Assert (cols != 0, ExcMatrixNotInitialized()); Assert(m() == dst.n(), ExcDimensionsDontMatch(m(),dst.n())); @@ -344,7 +344,7 @@ dSMatrix::vmult(dVector& dst,const dVector& src) } void -dSMatrix::Tvmult(dVector& dst,const dVector& src) +dSMatrix::Tvmult(dVector& dst,const dVector& src) const { Assert (cols != 0, ExcMatrixNotInitialized()); Assert(n() == dst.n(), ExcDimensionsDontMatch(n(),dst.n())); -- 2.39.5