From: Wolfgang Bangerth Date: Mon, 4 Apr 2005 19:00:10 +0000 (+0000) Subject: Optimize certain issues. X-Git-Tag: v8.0.0~14200 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b0130b21bb74f3325ed16b76efb97a0f66a5629;p=dealii.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