From e9529cbea32ba1fdde46fa8266f6ecbd93754f83 Mon Sep 17 00:00:00 2001 From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de> Date: Fri, 1 Dec 2017 07:21:09 +0100 Subject: [PATCH] [test][1p2c] Use new constructor for ElementSolution --- test/porousmediumflow/1pnc/implicit/1p2ctestproblem.hh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/porousmediumflow/1pnc/implicit/1p2ctestproblem.hh b/test/porousmediumflow/1pnc/implicit/1p2ctestproblem.hh index 9445668a5a..31997cdfb3 100644 --- a/test/porousmediumflow/1pnc/implicit/1p2ctestproblem.hh +++ b/test/porousmediumflow/1pnc/implicit/1p2ctestproblem.hh @@ -256,11 +256,7 @@ public: // construct the element solution const auto elementSolution = [&]() { - ElementSolutionVector sol; - sol.resize(fvGeometry.numScv()); - - for(auto&& scv : scvs(fvGeometry)) - sol[scv.indexInElement()] = elemVolVars[scv].priVars(); + ElementSolutionVector sol(element, elemVolVars, fvGeometry); if(isBox) for(auto&& scvf : scvfs(fvGeometry)) -- GitLab