Skip to content
Snippets Groups Projects
Commit c3804f79 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[component] redirect constexpr functions to implementation

throw statements are no const expressions
parent 39732b1c
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!542Feature/adpativity next
...@@ -64,31 +64,31 @@ public: ...@@ -64,31 +64,31 @@ public:
* \brief Returns true if the gas phase is assumed to be compressible * \brief Returns true if the gas phase is assumed to be compressible
*/ */
static constexpr bool gasIsCompressible() static constexpr bool gasIsCompressible()
{ DUNE_THROW(Dune::NotImplemented, "Component::gasIsCompressible()"); } { return Implementation::gasIsCompressible(); }
/*! /*!
* \brief Returns true if the gas phase viscostiy is constant * \brief Returns true if the gas phase viscostiy is constant
*/ */
static constexpr bool gasViscosityIsConstant() static constexpr bool gasViscosityIsConstant()
{ DUNE_THROW(Dune::NotImplemented, "Component::gasViscosityIsConstant()"); } { return Implementation::gasViscosityIsConstant(); }
/*! /*!
* \brief Returns true if the gas phase is assumed to be ideal * \brief Returns true if the gas phase is assumed to be ideal
*/ */
static constexpr bool gasIsIdeal() static constexpr bool gasIsIdeal()
{ DUNE_THROW(Dune::NotImplemented, "Component::gasIsCompressible()"); } { return Implementation::gasIsCompressible(); }
/*! /*!
* \brief Returns true if the liquid phase is assumed to be compressible * \brief Returns true if the liquid phase is assumed to be compressible
*/ */
static constexpr bool liquidIsCompressible() static constexpr bool liquidIsCompressible()
{ DUNE_THROW(Dune::NotImplemented, "Component::liquidIsCompressible()"); } { return Implementation::liquidIsCompressible(); }
/*! /*!
* \brief Returns true if the liquid phase viscostiy is constant * \brief Returns true if the liquid phase viscostiy is constant
*/ */
static constexpr bool liquidViscosityIsConstant() static constexpr bool liquidViscosityIsConstant()
{ DUNE_THROW(Dune::NotImplemented, "Component::liquidViscosityIsConstant()"); } { return Implementation::liquidViscosityIsConstant(); }
/*! /*!
* \brief A human readable name for the component. * \brief A human readable name for the component.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment