From daf372425308e43d1c9d8fc8cf040a8fe4fdb121 Mon Sep 17 00:00:00 2001 From: guido Date: Wed, 17 Oct 2001 08:12:38 +0000 Subject: [PATCH] assertions added git-svn-id: https://svn.dealii.org/trunk@5151 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/block_sparsity_pattern.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deal.II/lac/include/lac/block_sparsity_pattern.h b/deal.II/lac/include/lac/block_sparsity_pattern.h index 34e71fb401..a7715bb987 100644 --- a/deal.II/lac/include/lac/block_sparsity_pattern.h +++ b/deal.II/lac/include/lac/block_sparsity_pattern.h @@ -331,6 +331,10 @@ class BlockSparsityPatternBase : public Subscriptor int, int, << "The number of blocks " << arg1 << " and " << arg2 << " are different."); + /** + * Exception + */ + DeclException0 (ExcInvalidConstructorCall); protected: @@ -494,6 +498,8 @@ SparsityPatternBase & BlockSparsityPatternBase::block (const unsigned int row, const unsigned int column) { + Assert (row::block (const unsigned int row, const unsigned int column) const { + Assert (row