From: Wolfgang Bangerth Date: Wed, 13 May 2020 21:32:27 +0000 (-0600) Subject: Simplify creation of a std::set. X-Git-Tag: v9.2.0-rc2~7^2~8 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9843805eeb8d46cb1d43e1f74189febc57f8b87b;p=dealii.git Simplify creation of a std::set. --- 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)