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
4f8d968c
Commit
4f8d968c
authored
Aug 31, 2017
by
Timo Koch
Browse files
[fluids/components] Make isCompressible constexpr
parent
0e31400f
Changes
27
Hide whitespace changes
Inline
Side-by-side
dumux/material/components/brine.hh
View file @
4f8d968c
...
...
@@ -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
();
}
/*!
...
...
dumux/material/components/component.hh
View file @
4f8d968c
...
...
@@ -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()"
);
}
/*!
...
...
dumux/material/components/constant.hh
View file @
4f8d968c
...
...
@@ -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
;
}
/*!
...
...
dumux/material/components/dnapl.hh
View file @
4f8d968c
...
...
@@ -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
;
}
/*!
...
...
dumux/material/components/heavyoil.hh
View file @
4f8d968c
...
...
@@ -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
;
}
/*!
...
...
dumux/material/components/lnapl.hh
View file @
4f8d968c
...
...
@@ -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
;
}
/*!
...
...
dumux/material/components/mesitylene.hh
View file @
4f8d968c
...
...
@@ -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
;
}
/*!
...
...
dumux/material/components/simpleh2o.hh
View file @
4f8d968c
...
...
@@ -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
;
}
/*!
...
...
dumux/material/components/tabulatedcomponent.hh
View file @
4f8d968c
...
...
@@ -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
();
}
/*!
...
...
dumux/material/components/unit.hh
View file @
4f8d968c
...
...
@@ -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
;
}
/*!
...
...
dumux/material/components/xylene.hh
View file @
4f8d968c
...
...
@@ -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
;
}
/*!
...
...
dumux/material/fluidsystems/1p.hh
View file @
4f8d968c
...
...
@@ -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
);
...
...
dumux/material/fluidsystems/2pimmiscible.hh
View file @
4f8d968c
...
...
@@ -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
);
...
...
dumux/material/fluidsystems/2pliquidvapor.hh
View file @
4f8d968c
...
...
@@ -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
...
...
dumux/material/fluidsystems/brineair.hh
View file @
4f8d968c
...
...
@@ -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
...
...
dumux/material/fluidsystems/brineco2.hh
View file @
4f8d968c
...
...
@@ -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
);
...
...
dumux/material/fluidsystems/gasphase.hh
View file @
4f8d968c
...
...
@@ -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
();
}
/*!
...
...
dumux/material/fluidsystems/h2oair.hh
View file @
4f8d968c
...
...
@@ -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
...
...
dumux/material/fluidsystems/h2oairmesitylene.hh
View file @
4f8d968c
...
...
@@ -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
...
...
dumux/material/fluidsystems/h2oairxylene.hh
View file @
4f8d968c
...
...
@@ -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
...
...
Prev
1
2
Next
Timo Koch
@timok
mentioned in commit
21105a4d
·
Sep 03, 2017
mentioned in commit
21105a4d
mentioned in commit 21105a4da00136c29a62e24ecbc8047cea9e259a
Toggle commit list
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