From: guido Date: Wed, 17 Oct 2001 08:12:38 +0000 (+0000) Subject: assertions added X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daf372425308e43d1c9d8fc8cf040a8fe4fdb121;p=dealii-svn.git assertions added git-svn-id: https://svn.dealii.org/trunk@5151 0785d39b-7218-0410-832d-ea1e28bc413d --- 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