]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simultaneous addition with CSetSP can easily be improved.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 16 Mar 2009 13:08:18 +0000 (13:08 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 16 Mar 2009 13:08:18 +0000 (13:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@18487 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/compressed_set_sparsity_pattern.h

index 059b8049f150289b19de88594591107cc38f4063..112b637a703841748616be15d26da1940b7bf3ad 100644 (file)
@@ -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);
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.