From 96bc74112d57d97aa17e05a31f36662e0d20ea6f Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Fri, 6 May 2022 07:49:12 +0200 Subject: [PATCH] Improve name of a variable --- examples/step-37/step-37.cc | 4 ++-- examples/step-66/step-66.cc | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/step-37/step-37.cc b/examples/step-37/step-37.cc index 1669ff13ca..1f51a25b31 100644 --- a/examples/step-37/step-37.cc +++ b/examples/step-37/step-37.cc @@ -841,10 +841,10 @@ namespace Step37 const unsigned int nlevels = triangulation.n_global_levels(); mg_matrices.resize(0, nlevels - 1); - const std::set dirichlet_boundary = {0}; + const std::set 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) { diff --git a/examples/step-66/step-66.cc b/examples/step-66/step-66.cc index 67fcdc6726..0c22657787 100644 --- a/examples/step-66/step-66.cc +++ b/examples/step-66/step-66.cc @@ -582,11 +582,10 @@ namespace Step66 mg_matrices.resize(0, nlevels - 1); mg_solution.resize(0, nlevels - 1); - std::set dirichlet_boundary; - dirichlet_boundary.insert(0); + const std::set 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); -- 2.39.5