]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Really minor edit to step-89.cc. 17158/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 21 Jun 2024 03:40:13 +0000 (21:40 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 21 Jun 2024 03:40:13 +0000 (21:40 -0600)
examples/step-89/step-89.cc

index b39ffb885c89eba925fa880aeed21ad4ddb3dc25..8621149067a7a4194957bd07858cda486420300c 100644 (file)
@@ -1699,8 +1699,8 @@ int main(int argc, char *argv[])
   // Construct non-matching triangulation and fill non-matching boundary IDs.
 
   // Similar to step-87, the minimum requirement of this tutorial is MPI.
-  // parallel::distributed::Triangulation is used if deal.II is configured
-  // with p4est. Otherwise parallel::shared::Triangulation is used.
+  // The parallel::distributed::Triangulation class is used if deal.II is
+  // configured with p4est. Otherwise parallel::shared::Triangulation is used.
 #ifdef DEAL_II_WITH_P4EST
   parallel::distributed::Triangulation<dim> tria(MPI_COMM_WORLD);
 #else
@@ -1721,7 +1721,7 @@ int main(int argc, char *argv[])
 
   pcout << "Create DoFHandler..." << std::endl;
   DoFHandler<dim> dof_handler(tria);
-  dof_handler.distribute_dofs(FESystem<dim>(FE_DGQ<dim>(degree), dim + 1));
+  dof_handler.distribute_dofs(FESystem<dim>(FE_DGQ<dim>(degree) ^ (dim + 1)));
   pcout << " - Number of DoFs: " << dof_handler.n_dofs() << std::endl;
 
   AffineConstraints<Number> constraints;

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.