From: Guido Kanschat Date: Wed, 29 Sep 2010 15:45:17 +0000 (+0000) Subject: add assertion of vector sizes X-Git-Tag: v8.0.0~5330 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c8bf0b82d08d6b856555e92900a2bdc2b6f5a61;p=dealii.git add assertion of vector sizes git-svn-id: https://svn.dealii.org/trunk@22194 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/block_sparsity_pattern.cc b/deal.II/lac/source/block_sparsity_pattern.cc index 54d1a68dc3..1d3840245f 100644 --- a/deal.II/lac/source/block_sparsity_pattern.cc +++ b/deal.II/lac/source/block_sparsity_pattern.cc @@ -334,6 +334,8 @@ BlockSparsityPattern::reinit( const BlockIndices& cols, const std::vector >& row_lengths) { + AssertDimension (row_lengths.size(), cols.size()); + this->reinit(rows.size(), cols.size()); for (unsigned int j=0;j