From: bangerth Date: Fri, 4 Jun 2010 20:33:22 +0000 (+0000) Subject: Only check that an entry in the matrix exists in debug mode. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee52f940ce30de6fb30bc740148a7f048210ee34;p=dealii-svn.git Only check that an entry in the matrix exists in debug mode. git-svn-id: https://svn.dealii.org/trunk@21154 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/sparse_matrix.h b/deal.II/lac/include/lac/sparse_matrix.h index adeb294d95..d9a5bfd682 100644 --- a/deal.II/lac/include/lac/sparse_matrix.h +++ b/deal.II/lac/include/lac/sparse_matrix.h @@ -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::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)]; }