Commit 4f8d968c authored by Timo Koch's avatar Timo Koch
Browse files

[fluids/components] Make isCompressible constexpr

parent 0e31400f
......@@ -267,7 +267,7 @@ public:
/*!
* \brief Returns true if the liquid phase is assumed to be compressible
*/
static bool liquidIsCompressible()
static constexpr bool liquidIsCompressible()
{ return H2O::liquidIsCompressible(); }
/*!
......
......@@ -75,7 +75,7 @@ public:
/*!
* \brief Returns true if the liquid phase is assumed to be compressible
*/
static bool liquidIsCompressible()
static constexpr bool liquidIsCompressible()
{ DUNE_THROW(Dune::NotImplemented, "Component::liquidIsCompressible()"); }
/*!
......
......@@ -87,7 +87,7 @@ public:
/*!
* \brief Returns true if the liquid phase is assumed to be compressible
*/
static bool liquidIsCompressible()
static constexpr bool liquidIsCompressible()
{ return false; }
/*!
......
......@@ -107,7 +107,7 @@ public:
/*!
* \brief Returns true if the liquid phase is assumed to be compressible
*/
static bool liquidIsCompressible()
static constexpr bool liquidIsCompressible()
{ return false; }
/*!
......
......@@ -376,7 +376,7 @@ public:
/*!
* \brief Returns true if the liquid phase is assumed to be compressible
*/
static bool liquidIsCompressible()
static constexpr bool liquidIsCompressible()
{ return true; }
/*!
......
......@@ -50,7 +50,7 @@ public:
/*!
* \brief Returns true if the liquid phase is assumed to be compressible
*/
static bool liquidIsCompressible()
static constexpr bool liquidIsCompressible()
{ return false; }
/*!
......
......@@ -232,7 +232,7 @@ public:
/*!
* \brief Returns true if the liquid phase is assumed to be compressible
*/
static bool liquidIsCompressible()
static constexpr bool liquidIsCompressible()
{ return false; }
/*!
......
......@@ -190,7 +190,7 @@ public:
/*!
* \brief Returns true if the liquid phase is assumed to be compressible
*/
static bool liquidIsCompressible()
static constexpr bool liquidIsCompressible()
{ return false; }
/*!
......
......@@ -440,7 +440,7 @@ public:
/*!
* \brief Returns true if the liquid phase is assumed to be compressible
*/
static bool liquidIsCompressible()
static constexpr bool liquidIsCompressible()
{ return RawComponent::liquidIsCompressible(); }
/*!
......
......@@ -49,7 +49,7 @@ public:
/*!
* \brief Returns true if the liquid phase is assumed to be compressible
*/
static bool liquidIsCompressible()
static constexpr bool liquidIsCompressible()
{ return false; }
/*!
......
......@@ -314,7 +314,7 @@ public:
/*!
* \brief Returns true if the liquid phase is assumed to be compressible
*/
static bool liquidIsCompressible()
static constexpr bool liquidIsCompressible()
{ return false; }
/*!
......
......@@ -103,7 +103,7 @@ public:
*
* \param phaseIdx The index of the fluid phase to consider
*/
static bool isCompressible(int phaseIdx)
static constexpr bool isCompressible(int phaseIdx)
{
assert(0 <= phaseIdx && phaseIdx < numPhases);
......
......@@ -136,7 +136,7 @@ public:
*
* \param phaseIdx The index of the fluid phase to consider
*/
static bool isCompressible(int phaseIdx)
static constexpr bool isCompressible(int phaseIdx)
{
assert(0 <= phaseIdx && phaseIdx < numPhases);
......
......@@ -136,7 +136,7 @@ public:
*
* \param phaseIdx The index of the fluid phase to consider
*/
static bool isCompressible(int phaseIdx)
static constexpr bool isCompressible(int phaseIdx)
{
assert(0 <= phaseIdx && phaseIdx < numPhases);
// gases are always compressible
......
......@@ -182,7 +182,7 @@ public:
*
* \param phaseIdx The index of the fluid phase to consider
*/
static bool isCompressible(int phaseIdx)
static constexpr bool isCompressible(int phaseIdx)
{
assert(0 <= phaseIdx && phaseIdx < numPhases);
// ideal gases are always compressible
......
......@@ -148,7 +148,7 @@ public:
*
* \param phaseIdx The index of the fluid phase to consider
*/
static bool isCompressible(int phaseIdx)
static constexpr bool isCompressible(int phaseIdx)
{
assert(0 <= phaseIdx && phaseIdx < numPhases);
......
......@@ -112,7 +112,7 @@ public:
/*!
* \brief Returns true if the fluid is assumed to be compressible
*/
static bool isCompressible(int phaseIdx = 0)
static constexpr bool isCompressible(int phaseIdx = 0)
{ return Component::gasIsCompressible(); }
/*!
......
......@@ -182,7 +182,7 @@ public:
*
* \param phaseIdx The index of the fluid phase to consider
*/
static bool isCompressible(int phaseIdx)
static constexpr bool isCompressible(int phaseIdx)
{
assert(0 <= phaseIdx && phaseIdx < numPhases);
// ideal gases are always compressible
......
......@@ -170,7 +170,7 @@ public:
*
* \param phaseIdx The index of the fluid phase to consider
*/
static bool isCompressible(int phaseIdx)
static constexpr bool isCompressible(int phaseIdx)
{
assert(0 <= phaseIdx && phaseIdx < numPhases);
// gases are always compressible
......
......@@ -166,7 +166,7 @@ public:
*
* \param phaseIdx The index of the fluid phase to consider
*/
static bool isCompressible(int phaseIdx)
static constexpr bool isCompressible(int phaseIdx)
{
assert(0 <= phaseIdx && phaseIdx < numPhases);
// gases are always compressible
......
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