From: kronbichler Date: Wed, 25 Mar 2009 18:05:25 +0000 (+0000) Subject: Teach even block sparsity patterns to accept the sorted argument (even though we... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c701692dff6250db86859069256ad561fe036e80;p=dealii-svn.git Teach even block sparsity patterns to accept the sorted argument (even though we do not call any function with that right now. git-svn-id: https://svn.dealii.org/trunk@18515 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 eb0df50d7b..6cf9e4f17e 100644 --- a/deal.II/lac/include/lac/block_sparsity_pattern.h +++ b/deal.II/lac/include/lac/block_sparsity_pattern.h @@ -299,7 +299,8 @@ class BlockSparsityPatternBase : public Subscriptor template void add_entries (const unsigned int row, ForwardIterator begin, - ForwardIterator end); + ForwardIterator end, + const bool indices_are_sorted = false); /** * Return number of rows of this @@ -1088,7 +1089,8 @@ template void BlockSparsityPatternBase::add_entries (const unsigned int row, ForwardIterator begin, - ForwardIterator end) + ForwardIterator end, + const bool indices_are_sorted) { // Resize scratch arrays if (block_column_indices.size() < this->n_block_cols()) @@ -1162,7 +1164,8 @@ BlockSparsityPatternBase::add_entries (const unsigned int r sub_objects[row_index.first][block_col]-> add_entries (row_index.second, block_column_indices[block_col].begin(), - block_column_indices[block_col].begin()+counter_within_block[block_col]); + block_column_indices[block_col].begin()+counter_within_block[block_col], + indices_are_sorted); } }