From 40b0dc3168ee6bd32df4aa4ae9d861d06d08dfea Mon Sep 17 00:00:00 2001
From: Thomas Fetzer <thomas.fetzer@iws.uni-stuttgart.de>
Date: Mon, 16 Jul 2018 10:12:56 +0200
Subject: [PATCH] [multidomain][stokesdarcy] Add a simpler interface for the
 bindCouplingContext (without the assembler)

---
 .../boundary/stokesdarcy/couplingmanager.hh         | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/dumux/multidomain/boundary/stokesdarcy/couplingmanager.hh b/dumux/multidomain/boundary/stokesdarcy/couplingmanager.hh
index d218a7c827..d218acd81a 100644
--- a/dumux/multidomain/boundary/stokesdarcy/couplingmanager.hh
+++ b/dumux/multidomain/boundary/stokesdarcy/couplingmanager.hh
@@ -183,6 +183,13 @@ public:
      */
     template<std::size_t i, class Assembler, std::enable_if_t<(i == stokesCellCenterIdx || i == stokesFaceIdx), int> = 0>
     void bindCouplingContext(Dune::index_constant<i> domainI, const Element<stokesCellCenterIdx>& element, const Assembler& assembler)
+    { bindCouplingContext(domainI, element); }
+
+    /*!
+     * \brief prepares all data and variables that are necessary to evaluate the residual of an Darcy element (i.e. Darcy information)
+     */
+    template<std::size_t i, std::enable_if_t<(i == stokesCellCenterIdx || i == stokesFaceIdx), int> = 0>
+    void bindCouplingContext(Dune::index_constant<i> domainI, const Element<stokesCellCenterIdx>& element)
     {
         stokesCouplingContext_.clear();
 
@@ -216,6 +223,12 @@ public:
      */
     template<class Assembler>
     void bindCouplingContext(Dune::index_constant<darcyIdx> domainI, const Element<darcyIdx>& element, const Assembler& assembler)
+    { bindCouplingContext(domainI, element); }
+
+    /*!
+     * \brief prepares all data and variables that are necessary to evaluate the residual of an Darcy element (i.e. Stokes information)
+     */
+    void bindCouplingContext(Dune::index_constant<darcyIdx> domainI, const Element<darcyIdx>& element)
     {
         darcyCouplingContext_.clear();
 
-- 
GitLab