diff --git a/dumux/assembly/fclocalassembler.hh b/dumux/assembly/fclocalassembler.hh index f09a175c57a822290987259f4fbf1aa1ccb0b3f7..33af2d0bcb98077137850b619f6312ed26da606e 100644 --- a/dumux/assembly/fclocalassembler.hh +++ b/dumux/assembly/fclocalassembler.hh @@ -358,7 +358,7 @@ public: ////////////////////////////////////////////////////////////////////////////////////////////////// // one residual per element facet - const auto numElementResiduals = element.subEntities(1); + const auto numElementResiduals = fvGeometry.numScv(); // create the vector storing the partial derivatives ElementResidualVector partialDerivs(numElementResiduals); @@ -573,7 +573,7 @@ public: auto elemSol = elementSolution(element, curSol, fvGeometry.gridGeometry()); // create the vector storing the partial derivatives - ElementResidualVector partialDerivs(element.subEntities(1)); + ElementResidualVector partialDerivs(fvGeometry.numScv()); // calculation of the derivatives for (const auto& scv : scvs(fvGeometry))