From: wolf Date: Mon, 30 Sep 2002 21:20:53 +0000 (+0000) Subject: Add the same assertion to the MA47 code. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cf63b027d695644f2807d8efbad7a4ca1e06d11;p=dealii-svn.git Add the same assertion to the MA47 code. git-svn-id: https://svn.dealii.org/trunk@6569 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/sparse_direct.cc b/deal.II/lac/source/sparse_direct.cc index e5ac9692d7..901caca133 100644 --- a/deal.II/lac/source/sparse_direct.cc +++ b/deal.II/lac/source/sparse_direct.cc @@ -1228,6 +1228,8 @@ SparseDirectMA47::get_synchronisation_lock () const void SparseDirectMA47::fill_A (const SparseMatrix &matrix) { + Assert (n_nonzero_elements <= A.size(), ExcInternalError()); + const SparsityPattern &sparsity_pattern = matrix.get_sparsity_pattern (); const unsigned int n_rows = sparsity_pattern.n_rows();