diff --git a/dumux/multidomain/subdomaincvfelocalassembler.hh b/dumux/multidomain/subdomaincvfelocalassembler.hh index 4ae95d50c6814f0ee5d3dbbbb6531d95d126ddac..78576df657f36dff43a4f3ec4a7e613ae4911971 100644 --- a/dumux/multidomain/subdomaincvfelocalassembler.hh +++ b/dumux/multidomain/subdomaincvfelocalassembler.hh @@ -366,7 +366,7 @@ public: }; // derive the residuals numerically - ElementResidualVector partialDerivs(element.subEntities(dim)); + ElementResidualVector partialDerivs(fvGeometry.numScv()); const auto& paramGroup = this->assembler().problem(domainJ).paramGroup(); static const int numDiffMethod = getParamFromGroup<int>(paramGroup, "Assembly.NumericDifferenceMethod");