From: Guido Kanschat Date: Tue, 13 Mar 2012 00:28:44 +0000 (+0000) Subject: and add assertions X-Git-Tag: v8.0.0~2775 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6a8d0438805de1dd3397c0af456f07c5f957a94;p=dealii.git and add assertions git-svn-id: https://svn.dealii.org/trunk@25270 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/full_matrix.h b/deal.II/include/deal.II/lac/full_matrix.h index 35bd45e912..4f69a546e4 100644 --- a/deal.II/include/deal.II/lac/full_matrix.h +++ b/deal.II/include/deal.II/lac/full_matrix.h @@ -1625,6 +1625,9 @@ inline void FullMatrix::add (const unsigned int r, const unsigned int c, const number v) { + AssertIndexRange(r, this->m()); + AssertIndexRange(c, this->n()); + this->operator()(r,c) += v; }