]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
and add assertions
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 13 Mar 2012 00:28:44 +0000 (00:28 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 13 Mar 2012 00:28:44 +0000 (00:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@25270 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/full_matrix.h

index 35bd45e912d5c2d9a5123fa56ef00b8697b117c3..4f69a546e4232dcf8d16bd55d58f39b7f7db33c7 100644 (file)
@@ -1625,6 +1625,9 @@ inline
 void
 FullMatrix<number>::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;
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.