diff --git a/test/porousmediumflow/1pnc/implicit/1p2ctestproblem.hh b/test/porousmediumflow/1pnc/implicit/1p2ctestproblem.hh index 9445668a5a505c611e435c6d71c4626b45ee704e..31997cdfb3b405670843d44cb1c214cc0170f6ed 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))