]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Only check that an entry in the matrix exists in debug mode.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 4 Jun 2010 20:33:22 +0000 (20:33 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 4 Jun 2010 20:33:22 +0000 (20:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@21154 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_matrix.h

index adeb294d951d2ae17956b60d4676ce5ac6b42f3e..d9a5bfd682ece6a8570c95ab2b2fe0f0b8d9770c 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name:  $
 //
-//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 by the deal.II authors
+//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -2370,7 +2370,7 @@ number SparseMatrix<number>::operator () (const unsigned int i,
                                          const unsigned int j) const
 {
   Assert (cols != 0, ExcNotInitialized());
-  AssertThrow (cols->operator()(i,j) != SparsityPattern::invalid_entry,
+  Assert (cols->operator()(i,j) != SparsityPattern::invalid_entry,
                ExcInvalidIndex(i,j));
   return val[cols->operator()(i,j)];
 }

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.