From 6b0130b21bb74f3325ed16b76efb97a0f66a5629 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 4 Apr 2005 19:00:10 +0000 Subject: [PATCH] Optimize certain issues. git-svn-id: https://svn.dealii.org/trunk@10347 0785d39b-7218-0410-832d-ea1e28bc413d --- .../source/petsc_parallel_sparse_matrix.cc | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) 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