From: wolf Date: Mon, 4 Apr 2005 19:00:10 +0000 (+0000) Subject: Optimize certain issues. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2265f6fce1890ebd2580d87d6d51ebf0c61a6ed;p=dealii-svn.git Optimize certain issues. git-svn-id: https://svn.dealii.org/trunk@10347 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/petsc_parallel_sparse_matrix.cc b/deal.II/lac/source/petsc_parallel_sparse_matrix.cc index 05fd72b0aa..b18a77ced1 100644 --- a/deal.II/lac/source/petsc_parallel_sparse_matrix.cc +++ b/deal.II/lac/source/petsc_parallel_sparse_matrix.cc @@ -415,22 +415,29 @@ namespace PETScWrappers // // note that we actually have to // set the entries to something - // non-zero! - for (unsigned int i=local_row_start; i + values (sparsity_pattern.max_entries_per_row(), + 1.); + + for (unsigned int i=local_row_start; i