From d86f8627409637e0a492b38943277eaf772bd44b Mon Sep 17 00:00:00 2001
From: Thomas Fetzer <thomas.fetzer@iws.uni-stuttgart.de>
Date: Mon, 31 Oct 2016 14:41:17 +0100
Subject: [PATCH] [mulitdomain][localresiduals] Allow pwsn formulation

---
 .../multidomain/2cnistokes2p2cni/2p2cnicouplinglocalresidual.hh | 2 --
 dumux/multidomain/2cstokes2p2c/2p2ccouplinglocalresidual.hh     | 2 --
 2 files changed, 4 deletions(-)

diff --git a/dumux/multidomain/2cnistokes2p2cni/2p2cnicouplinglocalresidual.hh b/dumux/multidomain/2cnistokes2p2cni/2p2cnicouplinglocalresidual.hh
index 4487c37390..21568b6541 100644
--- a/dumux/multidomain/2cnistokes2p2cni/2p2cnicouplinglocalresidual.hh
+++ b/dumux/multidomain/2cnistokes2p2cni/2p2cnicouplinglocalresidual.hh
@@ -123,8 +123,6 @@ public:
                     const VolumeVariables &volVars = this->curVolVars_()[scvIdx];
 
                     // set pressure as part of the momentum coupling
-                    static_assert(GET_PROP_VALUE(TypeTag, Formulation) == TwoPTwoCFormulation::pnsw,
-                                  "This coupling condition is only implemented for a pnsw formulation.");
                     if (this->bcTypes_(scvIdx).isCouplingDirichlet(massBalanceIdx))
                         this->residual_[scvIdx][massBalanceIdx] = volVars.pressure(nPhaseIdx);
 
diff --git a/dumux/multidomain/2cstokes2p2c/2p2ccouplinglocalresidual.hh b/dumux/multidomain/2cstokes2p2c/2p2ccouplinglocalresidual.hh
index 36a6142760..7b9a211688 100644
--- a/dumux/multidomain/2cstokes2p2c/2p2ccouplinglocalresidual.hh
+++ b/dumux/multidomain/2cstokes2p2c/2p2ccouplinglocalresidual.hh
@@ -123,8 +123,6 @@ public:
                     const VolumeVariables &volVars = this->curVolVars_()[scvIdx];
 
                     // set pressure as part of the momentum coupling
-                    static_assert(GET_PROP_VALUE(TypeTag, Formulation) == TwoPTwoCFormulation::pnsw,
-                                  "This coupling condition is only implemented for a pnsw formulation.");
                     if (this->bcTypes_(scvIdx).isCouplingDirichlet(massBalanceIdx))
                         this->residual_[scvIdx][massBalanceIdx] = volVars.pressure(nPhaseIdx);
 
-- 
GitLab