Skip to content

Commit

Permalink
Use new compute_... functions in tutorial steps
Browse files Browse the repository at this point in the history
  • Loading branch information
kronbichler committed Jun 7, 2019
1 parent ec16564 commit e9047ad
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/step-18/doc/intro.dox
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion examples/step-18/step-18.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion examples/step-40/step-40.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions examples/step-55/step-55.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion examples/step-62/step-62.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e9047ad

Please sign in to comment.