From: Martin Kronbichler Date: Fri, 7 Jun 2019 09:42:01 +0000 (+0200) Subject: Use new compute_... functions in tutorial steps X-Git-Tag: v9.2.0-rc1~1440^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8298%2Fhead;p=dealii.git Use new compute_... functions in tutorial steps --- diff --git a/examples/step-18/doc/intro.dox b/examples/step-18/doc/intro.dox index 043556fe6a..1116445c2b 100644 --- a/examples/step-18/doc/intro.dox +++ b/examples/step-18/doc/intro.dox @@ -405,7 +405,7 @@ using the syntax This knowledge extends to the DoFHandler object built on such triangulations, which can then identify which degrees of freedom are locally owned (see @ref GlossLocallyOwnedDofs) via calls such as -DoFHandler::n_locally_owned_dofs_per_processor() and +DoFHandler::compute_n_locally_owned_dofs_per_processor() and DoFTools::extract_locally_relevant_dofs(). Finally, the DataOut class also knows how to deal with such triangulations and will simply skip generating graphical output on cells not locally owned. diff --git a/examples/step-18/step-18.cc b/examples/step-18/step-18.cc index 26a50cff2a..f8a8129214 100644 --- a/examples/step-18/step-18.cc +++ b/examples/step-18/step-18.cc @@ -829,7 +829,8 @@ namespace Step18 n_local_cells = GridTools::count_cells_with_subdomain_association( triangulation, triangulation.locally_owned_subdomain()); - local_dofs_per_process = dof_handler.n_locally_owned_dofs_per_processor(); + local_dofs_per_process = + dof_handler.compute_n_locally_owned_dofs_per_processor(); // The next step is to set up constraints due to hanging nodes. This has // been handled many times before: diff --git a/examples/step-40/step-40.cc b/examples/step-40/step-40.cc index f241fc94d9..e8058c8cd6 100644 --- a/examples/step-40/step-40.cc +++ b/examples/step-40/step-40.cc @@ -316,7 +316,7 @@ namespace Step40 DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false); SparsityTools::distribute_sparsity_pattern( dsp, - dof_handler.n_locally_owned_dofs_per_processor(), + dof_handler.compute_n_locally_owned_dofs_per_processor(), mpi_communicator, locally_relevant_dofs); diff --git a/examples/step-55/step-55.cc b/examples/step-55/step-55.cc index e9981a7635..e2d202e238 100644 --- a/examples/step-55/step-55.cc +++ b/examples/step-55/step-55.cc @@ -430,7 +430,7 @@ namespace Step55 SparsityTools::distribute_sparsity_pattern( dsp, - dof_handler.locally_owned_dofs_per_processor(), + dof_handler.compute_locally_owned_dofs_per_processor(), mpi_communicator, locally_relevant_dofs); @@ -457,7 +457,7 @@ namespace Step55 dof_handler, coupling, dsp, constraints, false); SparsityTools::distribute_sparsity_pattern( dsp, - dof_handler.locally_owned_dofs_per_processor(), + dof_handler.compute_locally_owned_dofs_per_processor(), mpi_communicator, locally_relevant_dofs); preconditioner_matrix.reinit(owned_partitioning, diff --git a/examples/step-62/step-62.cc b/examples/step-62/step-62.cc index 1ad27e35a5..96d8f4a9c2 100644 --- a/examples/step-62/step-62.cc +++ b/examples/step-62/step-62.cc @@ -766,7 +766,7 @@ namespace step62 DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false); SparsityTools::distribute_sparsity_pattern( dsp, - dof_handler.n_locally_owned_dofs_per_processor(), + dof_handler.compute_n_locally_owned_dofs_per_processor(), mpi_communicator, locally_relevant_dofs);