]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
One more bug fix.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 8 Apr 2009 09:09:24 +0000 (09:09 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 8 Apr 2009 09:09:24 +0000 (09:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@18563 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 331bd4c98cc642b9f14de248226659f5b689b95f..63bd4d2a4f16a9baeaba6c7047884e4b43154fcb 100644 (file)
@@ -2156,12 +2156,13 @@ add_entries_local_to_global (const std::vector<unsigned int> &local_dof_indices,
              std::vector<unsigned int>::iterator index_it = localized_indices.begin();
              for (unsigned int block_col = 0; block_col<num_blocks; ++block_col)
                {
+                 const unsigned int next_block_col = block_starts[block_col+1];
                  sparsity_pattern.block(block,block_col).
                    add_entries(row,
                                index_it, 
-                               localized_indices.begin() + next_block, 
+                               localized_indices.begin() + next_block_col
                                true);
-                 index_it = localized_indices.begin() + next_block;
+                 index_it = localized_indices.begin() + next_block_col;
                }
            }
        }

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.