From 07dda6eca8e32c47fd513b1d37e5b0dadf731104 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 30 Mar 2017 15:09:45 -0400 Subject: [PATCH] fix step-55 This causes crashes with PETSc and solver convergence issues with Trilinos with more than one rank. --- examples/step-55/step-55.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/step-55/step-55.cc b/examples/step-55/step-55.cc index ab01da6bd1..652ae2f236 100644 --- a/examples/step-55/step-55.cc +++ b/examples/step-55/step-55.cc @@ -440,14 +440,14 @@ namespace Step55 DoFTools::make_sparsity_pattern (dof_handler, coupling, dsp, constraints, false); - preconditioner_matrix.reinit (owned_partitioning, - // owned_partitioning, - dsp, - mpi_communicator); SparsityTools::distribute_sparsity_pattern (dsp, dof_handler.locally_owned_dofs_per_processor(), mpi_communicator, locally_relevant_dofs); + preconditioner_matrix.reinit (owned_partitioning, + // owned_partitioning, + dsp, + mpi_communicator); } // Finally, we construct the block vectors with the right sizes. The -- 2.39.5