Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
3d426e5d
Commit
3d426e5d
authored
Jul 24, 2018
by
Timo Koch
Browse files
[fluidsystems] Make isMiscible() a mandatory function
parent
b2efcabd
Changes
2
Hide whitespace changes
Inline
Side-by-side
dumux/material/fluidsystems/base.hh
View file @
3d426e5d
...
...
@@ -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
...
...
dumux/material/fluidsystems/h2on2o2.hh
View file @
3d426e5d
...
...
@@ -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
****************************************/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment