From 6cf63b027d695644f2807d8efbad7a4ca1e06d11 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 30 Sep 2002 21:20:53 +0000 Subject: [PATCH] Add the same assertion to the MA47 code. git-svn-id: https://svn.dealii.org/trunk@6569 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/sparse_direct.cc | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.39.5