]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve name of a variable 13676/head
authorMartin Kronbichler <martin.kronbichler@uni-a.de>
Fri, 6 May 2022 05:49:12 +0000 (07:49 +0200)
committerMartin Kronbichler <martin.kronbichler@uni-a.de>
Fri, 6 May 2022 06:35:27 +0000 (08:35 +0200)
examples/step-37/step-37.cc
examples/step-66/step-66.cc

index 1669ff13cac7816f560f55cde031abc134de3508..1f51a25b31b390e7c4f3d2d87751570cf683d827 100644 (file)
@@ -841,10 +841,10 @@ namespace Step37
     const unsigned int nlevels = triangulation.n_global_levels();
     mg_matrices.resize(0, nlevels - 1);
 
-    const std::set<types::boundary_id> dirichlet_boundary = {0};
+    const std::set<types::boundary_id> dirichlet_boundary_ids = {0};
     mg_constrained_dofs.initialize(dof_handler);
     mg_constrained_dofs.make_zero_boundary_constraints(dof_handler,
-                                                       dirichlet_boundary);
+                                                       dirichlet_boundary_ids);
 
     for (unsigned int level = 0; level < nlevels; ++level)
       {
index 67fcdc6726610da48e6b0b4242ddd589f26502e6..0c2265778783ed91dbf73580f6fc37a945368237 100644 (file)
@@ -582,11 +582,10 @@ namespace Step66
     mg_matrices.resize(0, nlevels - 1);
     mg_solution.resize(0, nlevels - 1);
 
-    std::set<types::boundary_id> dirichlet_boundary;
-    dirichlet_boundary.insert(0);
+    const std::set<types::boundary_id> dirichlet_boundary_ids = {0};
     mg_constrained_dofs.initialize(dof_handler);
     mg_constrained_dofs.make_zero_boundary_constraints(dof_handler,
-                                                       dirichlet_boundary);
+                                                       dirichlet_boundary_ids);
 
     mg_transfer.initialize_constraints(mg_constrained_dofs);
     mg_transfer.build(dof_handler);

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.