From 9bbbf104448dda4cbed3ea2e656c3b05b8eab02c Mon Sep 17 00:00:00 2001
From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de>
Date: Wed, 3 Mar 2021 19:08:28 +0100
Subject: [PATCH] [smoothedlinearlaw] Add numFluidPhases()

---
 .../fluidmatrixinteractions/2p/smoothedlinearlaw.hh         | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dumux/material/fluidmatrixinteractions/2p/smoothedlinearlaw.hh b/dumux/material/fluidmatrixinteractions/2p/smoothedlinearlaw.hh
index 7cf2badd39..6f33091c44 100644
--- a/dumux/material/fluidmatrixinteractions/2p/smoothedlinearlaw.hh
+++ b/dumux/material/fluidmatrixinteractions/2p/smoothedlinearlaw.hh
@@ -66,6 +66,12 @@ public:
     static constexpr bool isRegularized()
     { return false; }
 
+    /*!
+     * \brief Return the number of fluid phases
+     */
+    static constexpr int numFluidPhases()
+    { return 2; }
+
     /*!
      * \brief The parameter type
      * \tparam Scalar The scalar type
-- 
GitLab