From: kanschat Date: Tue, 13 Mar 2012 00:28:44 +0000 (+0000) Subject: and add assertions X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6523337ea7153be45a7a977002bc3a09160b2f28;p=dealii-svn.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; }