]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add the same assertion to the MA47 code.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 30 Sep 2002 21:20:53 +0000 (21:20 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 30 Sep 2002 21:20:53 +0000 (21:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@6569 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparse_direct.cc

index e5ac9692d72c820e31e3f543c289751a209db0a2..901caca1336e62d171e57817eb30bfb044b0976d 100644 (file)
@@ -1228,6 +1228,8 @@ SparseDirectMA47::get_synchronisation_lock () const
 void
 SparseDirectMA47::fill_A (const SparseMatrix<double> &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();

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.