From: kronbichler Date: Mon, 16 Mar 2009 13:08:18 +0000 (+0000) Subject: Simultaneous addition with CSetSP can easily be improved. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df67f1db88c2f296938b64d4103fd79e914c7a3c;p=dealii-svn.git Simultaneous addition with CSetSP can easily be improved. git-svn-id: https://svn.dealii.org/trunk@18487 0785d39b-7218-0410-832d-ea1e28bc413d --- 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); }