]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug introduced in r21708
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 25 Aug 2010 19:56:55 +0000 (19:56 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 25 Aug 2010 19:56:55 +0000 (19:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@21715 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/constraint_matrix.templates.h

index 042080ceb174b30fab327cb8736264dfd93aa68a..4717cfa796628da9b3437fa176c391ebb7ccecf0 100644 (file)
@@ -1507,6 +1507,9 @@ namespace internals
                      unsigned int *           &col_ptr,
                      number *                 &val_ptr)
   {
+    if (column_end == column_start)
+      return;
+
     AssertIndexRange (column_end-1, global_cols.size());
     const unsigned int loc_row = global_rows.local_row(i);
 
@@ -1606,6 +1609,9 @@ namespace internals
                      const FullMatrix<double> &local_matrix,
                      SparseMatrix<number>     *sparse_matrix)
   {
+    if (column_end == column_start)
+      return;
+
     AssertIndexRange (column_end-1, global_rows.size());
     const SparsityPattern & sparsity = sparse_matrix->get_sparsity_pattern();
 #ifndef DEBUG
@@ -1758,6 +1764,9 @@ namespace internals
                      const Table<2,bool>           &dof_mask,
                      std::vector<unsigned int>::iterator &col_ptr)
   {
+    if (column_end == column_start)
+      return;
+
     const unsigned int loc_row = global_rows.local_row(i);
 
                                     // fast function if there are no indirect

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.