From: cazamias Date: Fri, 16 Nov 2012 23:01:38 +0000 (+0000) Subject: Updated to use Trilinos SparseMatrix X-Git-Tag: v8.0.0~120^2~116 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb2267e4db273ee36f8300326a0dc3f854b59e81;p=dealii.git Updated to use Trilinos SparseMatrix git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@27554 0785d39b-7218-0410-832d-ea1e28bc413d --- 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);