From 44ae7584f983024ce38edf82168239384fae95ab Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Mon, 2 Nov 2020 19:03:07 -0700 Subject: [PATCH] Avoid using deprecated DoFHandler functions in examples. --- examples/step-69/step-69.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/step-69/step-69.cc b/examples/step-69/step-69.cc index 1857639a5b..29b9deb1b5 100644 --- a/examples/step-69/step-69.cc +++ b/examples/step-69/step-69.cc @@ -672,6 +672,7 @@ namespace Step69 const Discretization &discretization, const std::string & subsection) : ParameterAcceptor(subsection) + , dof_handler(discretization.triangulation) , mpi_communicator(mpi_communicator) , computing_timer(computing_timer) , discretization(&discretization) @@ -691,8 +692,7 @@ namespace Step69 TimerOutput::Scope scope(computing_timer, "offline_data - distribute dofs"); - dof_handler.initialize(discretization->triangulation, - discretization->finite_element); + dof_handler.distribute_dofs(discretization->finite_element); locally_owned = dof_handler.locally_owned_dofs(); n_locally_owned = locally_owned.n_elements(); -- 2.39.5