From 9843805eeb8d46cb1d43e1f74189febc57f8b87b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 13 May 2020 15:32:27 -0600 Subject: [PATCH] Simplify creation of a std::set. --- examples/step-50/step-50.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/step-50/step-50.cc b/examples/step-50/step-50.cc index 86d3542780..b1f5b3c63a 100644 --- a/examples/step-50/step-50.cc +++ b/examples/step-50/step-50.cc @@ -562,9 +562,9 @@ void LaplaceProblem::setup_multigrid() mg_constrained_dofs.clear(); mg_constrained_dofs.initialize(dof_handler); - std::set bset; - bset.insert(0); - mg_constrained_dofs.make_zero_boundary_constraints(dof_handler, bset); + + const std::set boundary_ids = {types::boundary_id(0)}; + mg_constrained_dofs.make_zero_boundary_constraints(dof_handler, boundary_ids); const unsigned int n_levels = triangulation.n_global_levels(); if (settings.solver == Settings::gmg_mf) -- 2.39.5