From e46ab9b5ae2a955a8eb4d41f08814ea91ff076f1 Mon Sep 17 00:00:00 2001
From: Ned Coltman <edward.coltman@iws.uni-stuttgart.de>
Date: Fri, 24 Apr 2020 10:02:40 +0200
Subject: [PATCH] [fluxvariablescachefiller] change lambda capture to fix
 unused variable warning

---
 dumux/porousmediumflow/fluxvariablescachefiller.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dumux/porousmediumflow/fluxvariablescachefiller.hh b/dumux/porousmediumflow/fluxvariablescachefiller.hh
index 336dabc582..6e53a931c1 100644
--- a/dumux/porousmediumflow/fluxvariablescachefiller.hh
+++ b/dumux/porousmediumflow/fluxvariablescachefiller.hh
@@ -616,7 +616,7 @@ private:
                 if (forceUpdateAll || diffusionIsSolDependent)
                 {
                     // lambda to obtain diffusion coefficient
-                    const auto getD = [phaseIdx, compIdx] (const auto& volVars)
+                    const auto getD = [&](const auto& volVars)
                     {
                         if constexpr (FluidSystem::isTracerFluidSystem())
                             return volVars.effectiveDiffusionCoefficient(0, 0, compIdx);
-- 
GitLab