From bb2267e4db273ee36f8300326a0dc3f854b59e81 Mon Sep 17 00:00:00 2001 From: cazamias Date: Fri, 16 Nov 2012 23:01:38 +0000 Subject: [PATCH] Updated to use Trilinos SparseMatrix git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@27554 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-40/step-40.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/deal.II/examples/step-40/step-40.cc b/deal.II/examples/step-40/step-40.cc index b958a72ba8..3717d27588 100644 --- a/deal.II/examples/step-40/step-40.cc +++ b/deal.II/examples/step-40/step-40.cc @@ -429,11 +429,20 @@ namespace Step40 dof_handler.n_locally_owned_dofs_per_processor(), mpi_communicator, locally_relevant_dofs); + +#ifdef USE_PETSC_LA system_matrix.reinit (mpi_communicator, csp, dof_handler.n_locally_owned_dofs_per_processor(), dof_handler.n_locally_owned_dofs_per_processor(), Utilities::MPI::this_mpi_process(mpi_communicator)); +#else + system_matrix.reinit (locally_owned_dofs, + locally_owned_dofs, + csp, + mpi_communicator, + false); +#endif } @@ -608,8 +617,7 @@ namespace Step40 { LA::MPI::Vector completely_distributed_solution (mpi_communicator, - dof_handler.n_dofs(), - dof_handler.n_locally_owned_dofs()); + locally_owned_dofs); SolverControl solver_control (dof_handler.n_dofs(), 1e-12); -- 2.39.5