From b824c3f8c8bae56577972f12c044f059f4eee7ca Mon Sep 17 00:00:00 2001
From: Timo Koch <timokoch@math.uio.no>
Date: Sun, 19 Mar 2023 15:58:49 +0100
Subject: [PATCH] [md] Use numScv instead of subEntities correcting size of
 element residual vector

---
 dumux/multidomain/subdomaincvfelocalassembler.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dumux/multidomain/subdomaincvfelocalassembler.hh b/dumux/multidomain/subdomaincvfelocalassembler.hh
index 4ae95d50c6..78576df657 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");
-- 
GitLab