]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid using deprecated DoFHandler functions in examples. 11160/head
authorMarc Fehling <mafehling.git@gmail.com>
Tue, 3 Nov 2020 02:03:07 +0000 (19:03 -0700)
committerMarc Fehling <mafehling.git@gmail.com>
Tue, 17 Nov 2020 19:43:42 +0000 (12:43 -0700)
examples/step-69/step-69.cc

index 1857639a5bfb99936ca7ccf4762aad99f42278b3..29b9deb1b5e4800e697030bcc81fd325487f44eb 100644 (file)
@@ -672,6 +672,7 @@ namespace Step69
                                 const Discretization<dim> &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();

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.