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
dc49fcaf
Commit
dc49fcaf
authored
Aug 07, 2018
by
Timo Koch
Browse files
[components] Make isGasIdeal and isGasCompressible constexpr
parent
5d4b1372
Changes
11
Hide whitespace changes
Inline
Side-by-side
dumux/material/components/air.hh
View file @
dc49fcaf
...
...
@@ -99,13 +99,13 @@ public:
/*!
* \brief Returns true, the gas phase is assumed to be compressible
*/
static
bool
gasIsCompressible
()
static
constexpr
bool
gasIsCompressible
()
{
return
true
;
}
/*!
* \brief Returns true, the gas phase is assumed to be ideal
*/
static
bool
gasIsIdeal
()
static
constexpr
bool
gasIsIdeal
()
{
return
true
;
}
/*!
...
...
dumux/material/components/brine.hh
View file @
dc49fcaf
...
...
@@ -281,13 +281,13 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be ideal
*/
static
bool
gasIsIdeal
()
static
constexpr
bool
gasIsIdeal
()
{
return
H2O
::
gasIsIdeal
();
}
/*!
* \brief Returns true if the gas phase is assumed to be compressible
*/
static
bool
gasIsCompressible
()
static
constexpr
bool
gasIsCompressible
()
{
return
H2O
::
gasIsCompressible
();
}
/*!
...
...
dumux/material/components/ch4.hh
View file @
dc49fcaf
...
...
@@ -95,7 +95,7 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be compressible
*/
static
bool
gasIsCompressible
()
static
constexpr
bool
gasIsCompressible
()
{
return
true
;
}
/*!
...
...
@@ -122,7 +122,7 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be ideal
*/
static
bool
gasIsIdeal
()
static
constexpr
bool
gasIsIdeal
()
{
return
true
;
}
/*!
...
...
dumux/material/components/h2.hh
View file @
dc49fcaf
...
...
@@ -131,13 +131,13 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be compressible
*/
static
bool
gasIsCompressible
()
static
constexpr
bool
gasIsCompressible
()
{
return
true
;
}
/*!
* \brief Returns true if the gas phase is assumed to be ideal
*/
static
bool
gasIsIdeal
()
static
constexpr
bool
gasIsIdeal
()
{
return
true
;
}
/*!
...
...
dumux/material/components/heavyoil.hh
View file @
dc49fcaf
...
...
@@ -384,13 +384,13 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be compressible
*/
static
bool
gasIsCompressible
()
static
constexpr
bool
gasIsCompressible
()
{
return
true
;
}
/*!
* \brief Returns true if the gas phase is assumed to be ideal
*/
static
bool
gasIsIdeal
()
static
constexpr
bool
gasIsIdeal
()
{
return
true
;
}
/*!
...
...
dumux/material/components/mesitylene.hh
View file @
dc49fcaf
...
...
@@ -258,13 +258,13 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be compressible
*/
static
bool
gasIsCompressible
()
static
constexpr
bool
gasIsCompressible
()
{
return
true
;
}
/*!
* \brief Returns true if the gas phase is assumed to be ideal
*/
static
bool
gasIsIdeal
()
static
constexpr
bool
gasIsIdeal
()
{
return
true
;
}
/*!
...
...
dumux/material/components/n2.hh
View file @
dc49fcaf
...
...
@@ -146,13 +146,13 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be compressible
*/
static
bool
gasIsCompressible
()
static
constexpr
bool
gasIsCompressible
()
{
return
true
;
}
/*!
* \brief Returns true if the gas phase is assumed to be ideal
*/
static
bool
gasIsIdeal
()
static
constexpr
bool
gasIsIdeal
()
{
return
true
;
}
/*!
...
...
dumux/material/components/simpleh2o.hh
View file @
dc49fcaf
...
...
@@ -235,7 +235,7 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be ideal
*/
static
bool
gasIsIdeal
()
static
constexpr
bool
gasIsIdeal
()
{
return
true
;
}
/*!
...
...
dumux/material/components/tabulatedcomponent.hh
View file @
dc49fcaf
...
...
@@ -413,7 +413,7 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be compressible
*/
static
bool
gasIsCompressible
()
static
constexpr
bool
gasIsCompressible
()
{
return
RawComponent
::
gasIsCompressible
();
}
/*!
...
...
@@ -425,7 +425,7 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be ideal
*/
static
bool
gasIsIdeal
()
static
constexpr
bool
gasIsIdeal
()
{
return
RawComponent
::
gasIsIdeal
();
}
...
...
dumux/material/components/trichloroethene.hh
View file @
dc49fcaf
...
...
@@ -108,7 +108,7 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be compressible
*/
static
bool
gasIsCompressible
()
static
constexpr
bool
gasIsCompressible
()
{
return
true
;
}
/*!
...
...
@@ -149,7 +149,7 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be ideal
*/
static
bool
gasIsIdeal
()
static
constexpr
bool
gasIsIdeal
()
{
return
true
;
}
/*!
...
...
dumux/material/components/xylene.hh
View file @
dc49fcaf
...
...
@@ -304,13 +304,13 @@ public:
/*!
* \brief Returns true if the gas phase is assumed to be compressible
*/
static
bool
gasIsCompressible
()
static
constexpr
bool
gasIsCompressible
()
{
return
true
;
}
/*!
* \brief Returns true if the gas phase is assumed to be ideal
*/
static
bool
gasIsIdeal
()
static
constexpr
bool
gasIsIdeal
()
{
return
true
;
}
/*!
...
...
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