Skip to content

Commit

Permalink
Fix unnecessary vector copy
Browse files Browse the repository at this point in the history
Didn't realize I'd missed this one until I was double-checking Logan's
suggestions before resolving them.
  • Loading branch information
roystgnr committed Sep 14, 2022
1 parent 6d02be4 commit bac2360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/src/meshgenerators/XYDelaunayGenerator.C
Expand Up @@ -132,8 +132,8 @@ XYDelaunayGenerator::generate()
"input_subdomain_names",
"input_boundary_names and input_subdomain_names cannot both specify an outer boundary.");

auto _boundary_names = getParam<std::vector<BoundaryName>>("input_boundary_names");
for (const auto & name : _boundary_names)
const auto & boundary_names = getParam<std::vector<BoundaryName>>("input_boundary_names");
for (const auto & name : boundary_names)
{
auto bcid = MooseMeshUtils::getBoundaryID(name, *mesh);
if (bcid == BoundaryInfo::invalid_id)
Expand Down

0 comments on commit bac2360

Please sign in to comment.