Commit 3d426e5d authored by Timo Koch's avatar Timo Koch
Browse files

[fluidsystems] Make isMiscible() a mandatory function

parent b2efcabd
......@@ -25,6 +25,7 @@
#define DUMUX_BASE_FLUID_SYSTEM_HH
#include <string>
#include <dumux/common/typetraits/typetraits.hh>
#include "nullparametercache.hh"
namespace Dumux {
......@@ -84,8 +85,12 @@ public:
/*!
* \brief Returns whether the fluids are miscible
*/
template<class T = Implementation>
static constexpr bool isMiscible()
{ return Implementation::isMiscible(); }
{
static_assert(AlwaysFalse<T>::value, "Mandatory function not implemented: isMiscible()");
return true;
}
/*!
* \brief Returns true if and only if a fluid phase is assumed to
......
......@@ -209,6 +209,12 @@ public:
return false; // not a gas
}
/*!
* \brief Returns whether the fluids are miscible
*/
static constexpr bool isMiscible()
{ return true; }
/****************************************
* Component related static parameters
****************************************/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment