From a1beda73acd3ecb64c3697ca68fe575fcb99a748 Mon Sep 17 00:00:00 2001 From: Timo Koch Date: Mon, 5 Apr 2021 16:07:07 +0200 Subject: [PATCH] [test] Fix a compiler warning about range-based-for element type --- lecture/mm/naplinfiltration/spatialparams.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lecture/mm/naplinfiltration/spatialparams.hh b/lecture/mm/naplinfiltration/spatialparams.hh index 794a701..7722719 100644 --- a/lecture/mm/naplinfiltration/spatialparams.hh +++ b/lecture/mm/naplinfiltration/spatialparams.hh @@ -100,7 +100,7 @@ public: auto krw = swRange; auto krn = swRange; auto krg = swRange; - for (const auto& [i, sw] : enumerate(swRange)) + for (const auto [i, sw] : enumerate(swRange)) { const Scalar sn = 1.0 - sg - sw; krw[i] = threePhasePcKrSw_.krw(sw, sn); -- GitLab