From fd67ab1ce55970981d4e8ba2abe84bed0f7ec25d Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 7 Feb 2018 15:19:38 +0100 Subject: [PATCH] [PL] ProcessVariable: Change BC creation. --- ProcessLib/ProcessVariable.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ProcessLib/ProcessVariable.cpp b/ProcessLib/ProcessVariable.cpp index 93474a224f8..48d45cd2371 100644 --- a/ProcessLib/ProcessVariable.cpp +++ b/ProcessLib/ProcessVariable.cpp @@ -165,11 +165,15 @@ ProcessVariable::createBoundaryConditions( std::vector<std::unique_ptr<ParameterBase>> const& parameters) { std::vector<std::unique_ptr<BoundaryCondition>> bcs; + bcs.reserve(_bc_configs.size()); for (auto& config : _bc_configs) - bcs.emplace_back(_bc_builder->createBoundaryCondition( + { + auto bc = _bc_builder->createBoundaryCondition( config, dof_table, _mesh, variable_id, integration_order, - _shapefunction_order, parameters)); + _shapefunction_order, parameters); + bcs.push_back(std::move(bc)); + } return bcs; } -- GitLab