From 0c81591e34822901c107ac37f5a8f380e0b92ce7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de>
Date: Tue, 30 Jan 2024 19:04:23 +0100
Subject: [PATCH] [facet][cm] add missing const specifier

---
 dumux/multidomain/facet/box/couplingmanager.hh               | 2 +-
 dumux/multidomain/facet/cellcentered/mpfa/couplingmanager.hh | 2 +-
 dumux/multidomain/facet/cellcentered/tpfa/couplingmanager.hh | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dumux/multidomain/facet/box/couplingmanager.hh b/dumux/multidomain/facet/box/couplingmanager.hh
index d641a3ffd8..6180d76505 100644
--- a/dumux/multidomain/facet/box/couplingmanager.hh
+++ b/dumux/multidomain/facet/box/couplingmanager.hh
@@ -400,7 +400,7 @@ public:
     NumEqVector<lowDimId> evalSourcesFromBulk(const Element<lowDimId>& element,
                                               const FVElementGeometry<lowDimId>& fvGeometry,
                                               const ElementVolumeVariables<lowDimId>& elemVolVars,
-                                              const SubControlVolume<lowDimId>& scv)
+                                              const SubControlVolume<lowDimId>& scv) const
     {
         // make sure the this is called for the element of the context
         assert(this->problem(lowDimId).gridGeometry().elementMapper().index(element) == lowDimContext_.elementIdx);
diff --git a/dumux/multidomain/facet/cellcentered/mpfa/couplingmanager.hh b/dumux/multidomain/facet/cellcentered/mpfa/couplingmanager.hh
index 4421089b69..8750b64093 100644
--- a/dumux/multidomain/facet/cellcentered/mpfa/couplingmanager.hh
+++ b/dumux/multidomain/facet/cellcentered/mpfa/couplingmanager.hh
@@ -164,7 +164,7 @@ public:
     NumEqVector<lowDimId> evalSourcesFromBulk(const Element<lowDimId>& element,
                                               const FVElementGeometry<lowDimId>& fvGeometry,
                                               const ElementVolumeVariables<lowDimId>& elemVolVars,
-                                              const SubControlVolume<lowDimId>& scv)
+                                              const SubControlVolume<lowDimId>& scv) const
     {
         // make sure the this is called for the element of the context
         assert(this->problem(lowDimId).gridGeometry().elementMapper().index(element) == this->lowDimCouplingContext().elementIdx);
diff --git a/dumux/multidomain/facet/cellcentered/tpfa/couplingmanager.hh b/dumux/multidomain/facet/cellcentered/tpfa/couplingmanager.hh
index 4438c82afe..70e6dc469e 100644
--- a/dumux/multidomain/facet/cellcentered/tpfa/couplingmanager.hh
+++ b/dumux/multidomain/facet/cellcentered/tpfa/couplingmanager.hh
@@ -367,7 +367,7 @@ public:
     NumEqVector<lowDimId> evalSourcesFromBulk(const Element<lowDimId>& element,
                                               const FVElementGeometry<lowDimId>& fvGeometry,
                                               const ElementVolumeVariables<lowDimId>& elemVolVars,
-                                              const SubControlVolume<lowDimId>& scv)
+                                              const SubControlVolume<lowDimId>& scv) const
     {
         // make sure the this is called for the element of the context
         assert(this->problem(lowDimId).gridGeometry().elementMapper().index(element) == lowDimContext_.elementIdx);
-- 
GitLab