From df67f1db88c2f296938b64d4103fd79e914c7a3c Mon Sep 17 00:00:00 2001 From: kronbichler Date: Mon, 16 Mar 2009 13:08:18 +0000 Subject: [PATCH] Simultaneous addition with CSetSP can easily be improved. git-svn-id: https://svn.dealii.org/trunk@18487 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/compressed_set_sparsity_pattern.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deal.II/lac/include/lac/compressed_set_sparsity_pattern.h b/deal.II/lac/include/lac/compressed_set_sparsity_pattern.h index 059b8049f1..112b637a70 100644 --- a/deal.II/lac/include/lac/compressed_set_sparsity_pattern.h +++ b/deal.II/lac/include/lac/compressed_set_sparsity_pattern.h @@ -430,9 +430,7 @@ void CompressedSetSparsityPattern::Line::add_entries (ForwardIterator begin, ForwardIterator end) { - // right now, just forward to the individual function. - for (ForwardIterator it = begin; it != end; ++it) - add (*it); + entries.insert (begin, end); } -- 2.39.5