Commit c7ff7699 authored by Timo Koch's avatar Timo Koch
Browse files

[md][couplingmanager] Fix nullptr initialization of problem

Remove unncessary capture for init lambda functions
parent ea8cba42
......@@ -92,11 +92,11 @@ public:
CouplingManager()
{
using namespace Dune::Hybrid;
forEach(problems_, [&](const auto* problem){
forEach(problems_, [](auto& problem){
problem = nullptr;
});
forEach(curSols_, [&](auto&& solutionVector){
forEach(curSols_, [](auto& solutionVector){
solutionVector = std::make_shared<typename std::decay_t<decltype(solutionVector)>::element_type>();
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment