]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Teach even block sparsity patterns to accept the sorted argument (even though we...
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Mar 2009 18:05:25 +0000 (18:05 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Mar 2009 18:05:25 +0000 (18:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@18515 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_sparsity_pattern.h

index eb0df50d7b4b0826f447ff9b2132bd7e79d0968b..6cf9e4f17e09c79b9434b01bf6e9c762324d4f0d 100644 (file)
@@ -299,7 +299,8 @@ class BlockSparsityPatternBase : public Subscriptor
     template <typename ForwardIterator>
     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 <typename ForwardIterator>
 void
 BlockSparsityPatternBase<SparsityPatternBase>::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<SparsityPatternBase>::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);
     }
 }
 

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.