From b6602f4a9226896a7ce2a067a0eeb6e3ca5c7191 Mon Sep 17 00:00:00 2001
From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de>
Date: Wed, 18 Jul 2018 21:12:05 +0200
Subject: [PATCH] [material][immiscibleFluidstate] Remove static_assert

* restricting the use of this fluidstate for numPhases == numComponent
  is actually not necessary

* components other than the main component are always zero anyway

* removing this assert does not break anything but allows using the OnePAdapterFluidsystem
  in combination with immiscible fluidsystems
---
 dumux/material/fluidstates/immiscible.hh | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dumux/material/fluidstates/immiscible.hh b/dumux/material/fluidstates/immiscible.hh
index b1168b4026..68b6e29cc2 100644
--- a/dumux/material/fluidstates/immiscible.hh
+++ b/dumux/material/fluidstates/immiscible.hh
@@ -43,9 +43,6 @@ class ImmiscibleFluidState
 public:
     static constexpr int numPhases = FluidSystem::numPhases;
     static constexpr int numComponents = FluidSystem::numComponents;
-    static_assert(numPhases == numComponents,
-                  "The number of phases must be equal to the number of "
-                  "components if immiscibility is assumed!");
 
     //! export the scalar type
     using Scalar = ScalarType;
-- 
GitLab