From: Marc Fehling Date: Tue, 3 Nov 2020 02:03:07 +0000 (-0700) Subject: Avoid using deprecated DoFHandler functions in examples. X-Git-Tag: v9.3.0-rc1~891^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44ae7584f983024ce38edf82168239384fae95ab;p=dealii.git Avoid using deprecated DoFHandler functions in examples. --- 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();