From d2e3c6b236112fd2418c9c223e7cfad63427fad0 Mon Sep 17 00:00:00 2001 From: Timo Koch <timokoch@math.uio.no> Date: Fri, 4 Oct 2024 23:39:08 +0000 Subject: [PATCH] [md][couplingmanager] Allow for r-value SolutionVectorStorage in attachSolution The storage can be passed as l-value or r-value. The solution itself is still mutable. --- dumux/multidomain/couplingmanager.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dumux/multidomain/couplingmanager.hh b/dumux/multidomain/couplingmanager.hh index 882406901a..92ebd7cd88 100644 --- a/dumux/multidomain/couplingmanager.hh +++ b/dumux/multidomain/couplingmanager.hh @@ -308,7 +308,7 @@ protected: * \note The caller has to make sure that curSol stays alive for the lifetime of * the coupling manager. Otherwise we have a dangling reference here. Use with care. */ - void attachSolution(SolutionVectorStorage& curSol) + void attachSolution(const SolutionVectorStorage& curSol) { using namespace Dune::Hybrid; forEach(integralRange(Dune::Hybrid::size(curSols_)), [&](const auto id) -- GitLab